Installation
The integration is enabled by default in Node.js:Basic Usage
Just use LangGraph normally:Configuration
Default Behavior
By default, inputs and outputs are not captured:Capture Inputs and Outputs
- Global Setting
- LangGraph Only
Enable for all AI integrations:
Integration Options
boolean
default:"sendDefaultPii"
Capture input messages from graph state
boolean
default:"sendDefaultPii"
Capture output messages and responses
Captured Operations
The integration captures two main operations:Agent Creation
- Agent name
- Available tools
- Graph configuration
Agent Invocation
- Input messages (if
recordInputs: true) - Output messages (if
recordOutputs: true) - Tool calls made during execution
- Graph state transitions
Practical Examples
Simple Agent
Agent with Tools
Multi-Agent System
Stateful Conversation
Captured Span Attributes
WhenrecordInputs and recordOutputs are enabled:
Viewing LangGraph Data
LangGraph operations appear as spans:Performance Monitoring
- Agent Execution Time: Track workflow performance
- Tool Performance: Monitor tool call latency
- State Transitions: Identify bottlenecks
- Error Rates: Track failures in agent execution
Source Code
The LangGraph integration is implemented in:packages/node/src/integrations/tracing/langgraph/index.ts:11