Claude launches managed OpenTelemetry export for API tracing

Anthropic launched managed OpenTelemetry export for the Claude API on October 14, 2026. Teams can now send distributed traces of Messages API requests, Managed Agents sessions, and tool invocations directly to their observability platform without writing instrumentation code. The feature ships in beta across all seven Claude SDK languages — Python, TypeScript, C#, Go, Java, PHP, and Ruby — and routes spans through destinations configured in the Claude Console.

For teams already running distributed tracing, this closes the visibility gap around LLM calls. Instead of building custom instrumentation, you can see Claude request latency, token usage, and tool execution in the same dashboard you use for application traces. The tradeoff: you now own the data retention, configure the routing, and accept that parts of the system remain undocumented.

Two layers of tracing

The export operates at two levels. SDK tracing instruments the client and emits spans for every Messages API request: token counts, model runs, and client-side tool invocations. API tracing instruments Anthropic’s backend and adds spans for server-side tools the API executes. Enable both and you see a unified trace from your application’s HTTP call through tool orchestration to the model’s internal runs.

To receive API spans, you add a destination in the Claude Console — an OTLP/HTTP endpoint with auth headers for Honeycomb, Datadog, or any observability platform that accepts OTLP. You can scope destinations to specific workspaces or send everything to one backend. Admin role required; developer role can view but not configure.

SDK tracing needs code. Install the latest SDK, register a tracer provider, and point it at your OTLP exporter. Standard OpenTelemetry setup, but SDK spans only flow from instrumented clients. API spans flow from every request in configured workspaces regardless of client.

Each destination has a content mode. “Metadata only” captures timing, status, token counts, and labels but strips prompts and responses. “Full content” includes the complete conversation. For zero data retention customers, full content works because the API holds exported data only in memory until delivery. Exception: Managed Agents retains data under standard policy even with export enabled.

Content lives in your observability platform under your retention settings. If Datadog keeps logs 15 days, exported spans stay queryable for 15 days. If Anthropic’s contract says zero retention but your Honeycomb retains 90 days, spans follow Honeycomb’s policy. This is a handoff, not replication.

Sampling and delivery constraints

On standard Claude Platform, you control sampling via the W3C traceparent header. If your application’s sampler marks a transaction as untraced, Claude respects that and emits no spans. On Claude Platform on AWS, this header isn’t supported yet — every request generates spans.

When you send a traceparent header, Claude nests its spans under your application’s trace. One distributed trace covers your HTTP service, business logic, Claude API call, and tool executions. The API also propagates trace context to MCP servers, so server tools can emit spans under the API’s tool-use span.

Delivery is at-least-once and best-effort. Anthropic compresses spans with gzip and retries on timeouts, but spans can be lost or duplicated. Your platform must deduplicate by trace and span ID. Each delivery times out after 10 seconds, including a 5-second TLS handshake budget.

Spans cap at 0.75 MB by default — enough for 200,000 tokens of text and under the 1 MB limit most platforms impose. When content exceeds this, spans truncate: request spans drop system prompts and early messages, tool spans trim result endings. You can raise the limit if your platform accepts larger payloads or lower it if a proxy rejects them.

What doesn’t get traced: the span reference documentation page was inaccessible during research, so the exact attribute schema, span names, and GenAI semantic convention version remain unclear until you see live data. No metrics or logs — this is distributed tracing only. For request-level aggregates by model or workspace, you still use the Usage and Cost API or build rollups from span data.

What changes for teams that already trace

If you’ve instrumented your application but not LLM calls, managed export closes the gap without custom span wrappers. Configure a destination, register a tracer provider, and your existing Jaeger or Tempo instance receives Claude spans aligned with application traces. The work shifts from code to decisions: which workspaces to trace, whether to export full content, how to handle conversation data now in your observability platform.

If you already wrap Anthropic calls in custom instrumentation, managed spans show internal details you couldn’t see — individual model runs, token counts per turn, server tool timing — but you’ll reconcile custom spans with automatic SDK spans. You can disable trace context propagation if your HTTP client already sends traceparent headers, but now you manage two sources of truth.

The admin requirement gates setup. Developers with Console developer roles cannot add destinations. In organizations where observability and LLM development are separate teams, destination setup becomes a coordination point.

Pricing is undocumented. No mention of whether span export affects billing, volume quotas, or rate limits. This matters for high-throughput agents generating hundreds of spans per session.

The feature is in beta. For production deployments where request observability is load-bearing, the beta label means you need a fallback if span delivery becomes unreliable or the schema changes.

Managed export delivers infrastructure you don’t have to build. It doesn’t deliver clarity on what happens when your observability platform is down, whether export stays free, or a complete attribute schema for queries. For teams running distributed tracing, this is an operational handoff — you now own retention, querying, and access controls for data that used to stay in Anthropic’s logs.

The outage behavior is treated here as undefined, but the destination documentation is fairly specific about it: a destination gets disabled when all deliveries fail for 24 hours, when the endpoint returns a 3xx, or when its hostname resolves to a non-public IP, and re-enabling it is a manual Console action taken with the Workspace filter set to All. So the loss on an observability outage is bounded rather than permanent, but the only stated signal is the Delivery column, which can lag about a minute behind. Is there a notification path outside the Console for the transition to Disabled, or is polling that column the practical guard? Worth knowing before scoping too: ten destinations per organization is the cap, disabled ones included.

The endpoint requirements are the part I would design around first, because they rule out the tidy internal topology. A destination needs an OTLP/HTTP endpoint that accepts protobuf over HTTPS on port 443, while a default OpenTelemetry Collector receiver listens on 4318, and the docs list a destination being disabled when its hostname resolves to a non-public address. Pointing export at a Collector on a private network address is therefore not a workaround; you either expose TLS ingress in front of the Collector or drop the Collector from the path and send straight to a vendor endpoint. That choice also settles whether spans you intended to keep internal ever leave your network at all.

Turning on both layers produces two spans per request under the same name, and that is the detail that breaks naive aggregation. The SDK’s client span and the API’s server span are both anthropic.messages.create, distinguishable by span kind or service.name, so any panel or cost rollup that counts spans rather than grouping by trace will overstate traffic before retry duplication is even considered. Deduplicating on trace ID plus span ID handles the at-least-once repeats, but the SDK and API pair is a separate problem, since it only lands in one trace if the trace context actually propagates; otherwise the API spans open their own. Filtering on service.name = claude-platform for the API side is the concrete handle the docs offer.

If these traces are meant to become an eval corpus, the truncation rule deserves more attention than the post gives it. Spans hold up to 0.75 MB of content by default, which the docs put at roughly a 200k-token context, while a full 1M-token context would need about 4 MB; once content exceeds the cap, anthropic.content.truncated is set to true and request spans shed the system prompt and the earliest messages first, with tool spans trimmed from the end of the result. Images and documents appear only as their type, so the trace is not a faithful record you can re-run against a modified prompt. Either raise the limit where the platform accepts bigger payloads, or filter on that truncation attribute at collection time instead of finding it later in a comparison.

One thing the post leaves out is that the content mode is not the last word for every organization. Where a HIPAA, FERPA, or K-12 data-handling restriction is in place with Anthropic, destinations export metadata only regardless of the mode selected, and the docs are explicit that SDK spans are not affected by that restriction. A team can therefore believe it has kept prompt content out of third-party tooling while the SDK path still carries it, since the destination setting and the SDK client setting are separate gates enforced separately. Baggage is a third path worth closing for the same reason: if your propagator writes it, the SDK forwards it with requests, and registering only the W3C trace context propagator is the stated way to suppress it. Which gate counts as authoritative for a no-prompts-leave-the-org policy?