Install
LangChain integrationGet your Nexus API key
Create or sign in to the Nexus platform and copy yournexus_api_key:
In examples below, nexus_key means your nexus_api_key.
Run your first manual trace
The source tree exportsNexusClient from nexus_library.nexus_core.
Add LangChain callback tracing
Add OpenAI Agents SDK tracing
NEXUS_DEV_MODE=true locally to disable external triggers. Set it to false (or omit it) in production.
Verify the trace exists
After your run finishes:- use
client.get_all_events()to fetch stored rows - use
client.print_tree_structure()to inspect hierarchy in terminal - use
client.get_trace_tree_string()to get an LLM-readable tree dump
Next steps
Manual tracing guide
Deep dive into span nesting and flush semantics.
LangChain guide
Understand callback lifecycle and event categories.
OpenAI Agents SDK guide
Trace OpenAI agents with NexusOpenAITracingProcessor.
Configuration
Set DB URLs and trigger endpoints safely.
Python reference
Review method-level behavior for
NexusClient.