Claude Platform
Send OpenTelemetry traces from Claude Managed Agents and the Claude Messages API to Sentry, with no code changes.
This feature is currently in open beta. Please reach out to feedback-tracing@sentry.io if you have feedback or questions. Features in beta are still in-progress and may have bugs. We recognize the irony.
The Claude Platform exports OpenTelemetry traces for Claude Managed Agents sessions and Messages API requests. Add Sentry as a destination in the Claude Console, and each agent turn, model request, and tool call shows up in Agents in the same Sentry project as your errors and backend spans. You don't need to install a Sentry SDK or change any code.
OpenTelemetry export on the Claude Platform is in beta, so span names and attributes can change. Console destinations work with the Claude API and Claude Platform on AWS. Requests sent through Amazon Bedrock or Google Cloud Vertex AI aren't traced this way. To trace those, use the Claude SDK instead (see Trace Your Own Code).
- A Sentry project for your agent
- The admin role in a Claude Console organization
Go to Project settings > Client Keys (DSN) for the project you want to send traces to, and copy the DSN. The Claude Console uses it to find your project's OTLP endpoint and authentication key.
In the Claude Console, open the OpenTelemetry settings page for your organization and click Add destination. One destination covers both Claude Managed Agents sessions and Messages API requests.
- Provider: Select Sentry.
- DSN: Paste the DSN that you copied.
- Content mode: Select Full content to see prompts, responses, and tool input and output in Sentry. Select Metadata only to send only timing, status, and token counts.
- Set as organization default: Select this for your first destination.
To send a workspace's traces to a different Sentry project, add a destination to that workspace. A workspace destination replaces the organization default for that workspace.
See the Claude Console docs for all destination options.
Send a Messages API request with an API key from a workspace that uses the destination, or run a Claude Managed Agents session. After the first traces are sent, the Delivery column on the Claude Console OpenTelemetry settings page changes to Healthy.
Then open Explore > Agents in Sentry. Your session or request shows up on the Conversations, Traces, and LLM Calls tabs. Select a conversation and open the Timeline tab to see each turn, model request, and tool call with its duration and token usage.
The Claude Platform puts the conversation on agent spans, and tool input and output on tool spans. To read prompts and tool results, select a tool span or open the Transcript tab. Model request spans don't include prompts.
Prompts and responses are only sent to Sentry if you select Full content for the destination. Sentry stores what it receives under your project's retention and data scrubbing settings. Spans are billed the same way as other Sentry tracing data.
The Claude Platform export covers the requests that Claude handles. To also see your application code and the tools it runs for Claude in the same trace, instrument your app with the Claude SDK or a Sentry SDK:
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").