OTEL trace viewer for Claude Code sessions
npm install @anthropic-ai/claude-traceView OpenTelemetry traces from Claude Code SDK.
``bash`
npm install -g @anthropic-ai/claude-trace
`bash`
claude-trace
Then run your SDK application with tracing enabled:
`bash``
export ENABLE_BETA_TRACING_DETAILED=1
export BETA_TRACING_ENDPOINT=http://localhost:4318
See getting_started.md for detailed setup and API documentation.