How Trace Collection Works
Automatic Instrumentation
The connector hooks into your LangChain/LangGraph execution without requiring code changes to your existing application logic.
OpenTelemetry Protocol
Traces are captured using the industry-standard , ensuring compatibility and future-proofing.
Real-time Transmission
Traces are sent to Arcbeam as they occur, giving you immediate visibility into your application’s behavior.
What Gets Captured
Model Interactions
Model Interactions
- Input prompts and system prompts
- Model responses
- (input and output tokens)
- Cost calculations
- Model name and provider
Execution Flow
Execution Flow
- Parent-child relationships between steps
- Timing for each operation
- Total execution duration
Retrieved Data (when connected to data sources)
Retrieved Data (when connected to data sources)
- Documents retrieved from vector databases
- Retrieval scores and metadata
- Source attribution
Tool Calls (for agents)
Tool Calls (for agents)
- Tool inputs and outputs
- Tool execution time
- Tool errors
Errors
Errors
- Exception type and message
- Stack traces
- Context when error occurred
Supported Frameworks
Arcbeam currently supports Python applications using:LangChain
Full support for LangChain Python applications
LangGraph
Full support for LangGraph agent workflows
JavaScript/TypeScript support and additional framework integrations are coming soon. Contact support@arcbeam.ai if you need support for a specific framework.
Quick Start
Install the Arcbeam connector:Configuration Options
- Example
- Parameters
Self-Hosted Configuration
If you’re running Arcbeam on your own infrastructure, configure the connector to send traces to your self-hosted instance by setting thebase_url parameter:
Security Best Practices
Store API Keys Securely
Store API Keys Securely
Never hardcode API keys in your source code. Use environment variables:
Use Different Keys Per Environment
Use Different Keys Per Environment
Create separate API keys for each environment:
This makes it easier to track usage and revoke access if needed.
| Environment | Purpose | Benefits |
|---|---|---|
| Development | Local testing | Safe experimentation without affecting production data |
| Staging | Pre-production testing | Validate changes before production deployment |
| Production | Live applications | Isolated credentials for production security |
Performance Considerations
Asynchronous Transmission - Traces are sent asynchronously, so they don’t block your application. The connector uses a background thread to batch and send traces.
Network Failures - If the Arcbeam platform is unreachable, traces are queued and retried automatically. Your application continues running normally.
Next Steps
Python Guide
Detailed guide with LangChain and LangGraph examples
Trace Attributes
Learn what data is captured in traces
Environments
Organize traces by environment
Troubleshooting
Fix common issues
