Anthropic Capability minor

OpenTelemetry export for Messages API requests and Managed Agents sessions enters beta

The Claude API and SDKs can now export OpenTelemetry traces of Messages API requests, tool uses and Managed Agents sessions, in beta. SDK spans ship in seven languages; API spans need a destination added in the Claude Console.

What does this mean for me?

  • Engineering leadership

    Cost, risk, timeline, team impact Worth knowing

    Claude API traffic can now feed the observability platform you already run, in beta. It helps with latency and spend debugging, but delivery is best effort, so keep the Usage API as the billing and per-key record.

  • Engineer

    What to change, what breaks, what to test Worth knowing

    Optional: register a tracer provider with the Claude SDK for client spans, and add an OpenTelemetry destination in the Claude Console for API spans; use both to get one trace per request. Don't build accounting on spans, which can be dropped.

  • General consumer

    Using the Claude apps, not the API No impact

    Nothing to do — this is a developer tracing feature for the Claude API and does not change the Claude apps.

Anthropic launched OpenTelemetry export in beta on October 14, 2026. It traces Messages API requests, tool uses and Claude Managed Agents sessions and sends the spans to an observability backend the customer already runs. Spans use the OpenTelemetry GenAI semantic conventions, so platforms that support those conventions recognise them without extra setup.

There are two halves that can be used separately or together. SDK tracing comes from the Claude SDK, which emits spans in Python, TypeScript, C#, Go, Java, PHP and Ruby once a tracer provider is registered. API tracing is configured server-side by adding an OpenTelemetry destination in the Claude Console. With both set up, a request’s SDK and API spans appear in one trace; for requests to Claude Platform on AWS the API spans land in separate traces.

Two caveats from the documentation: span delivery is best effort, so exported spans are not a complete usage record (the Usage API remains the source for per-key accounting), and a caller can drop a request’s API spans by clearing the sampled flag in its traceparent header. Full-content export works under zero data retention for the Messages API, with content held only in memory until delivered; Managed Agents is not eligible for zero data retention and its retention does not change.

Topics: Agents and tool use

Sources

Confidence
high
Verification
Verified: stated on the vendor's own pages
Date precision
exact
How this entry was made
Drafted by an agent, reviewed by a person