Callback handler (recommended)
PassApieCallbackHandler to your agent’s callbacks inside a run:
LangGraph node wrapper
Wrap individual graph nodes for step-level telemetry:LangChain tool step
For individual tool steps with explicit metadata:What you’ll see
Tool calls and workflow steps in the run timeline. In monitor mode, guard evaluations appear for tools with inferred or explicit metadata.Example
See the LangChain example in the SDK repos:- javascript-sdk/examples/langchain-instrumented-agent.ts
- python-sdk/examples/langchain_instrumented_agent.py
Next steps
Choose how to instrument
Framework plugin tier overview.
Monitor mode
Observe guard evaluations first.
