Claude Platform traces
Start tracing in 5 minutes
Send OpenTelemetry traces of your Claude API requests and Managed Agents sessions to Better Stack. Each model request, tool use, and agent turn arrives as a span with its token usage, latency, and errors.
1. Create a Claude Platform source
Create a new Claude Platform source in Better Stack
2. Add a destination in the Claude Console
As an admin of your Claude Console organization:
- Open the OpenTelemetry settings page and click Add destination.
- Set Provider to Custom.
- Set OTLP endpoint URL to the URL below. Don't add
/v1/traces. Claude adds it. - Under Request headers, add the header
Authorizationwith the value below. - Keep Content mode at Metadata only. Choose Full content to also send prompts and responses.
- Set Workspaces to All.
- Click Add destination.
3. Send a test span
- Click Test in the destination's More actions menu.
- Open Live tail and select your Claude Platform source marked as
spans. - Check that the
anthropic.testspan arrived.
Test failed?
The Console's message names the error. HTTP 401 or 403 means the Authorization header value doesn't match your source token.
4. Start tracing
Messages API requests and Managed Agents sessions in your workspaces now send their spans to Better Stack, under the service claude-platform. See Tracing for how to explore them, and Anthropic's span reference for every span and attribute Claude sends.
Need help?
Please let us know at hello@betterstack.com. We're happy to help! 🙏