Docs-based pick. No trial started.
https://platform.claude.com/docs/en/manage-claude/opentelemetry
WHY THIS PICK
A practical production question: how do you find which model or tool step made an agent slow or expensive, without copying full user conversations into another service? The docs answer both tracing coverage and privacy defaults.
THE METHOD: TWO LAYERS, ONE TRACE
SDK tracing covers client requests and client-side tools. API tracing covers individual model runs, server-side tools and Managed Agents turns. Use both for the full client/server path, not because either one alone sees everything. API destinations are configured in Claude Console and
require an admin; SDK setup is in application code. Export goes to an OTLP-compatible observability destination. The launch is public beta.
START WITH METADATA
Metadata only is the default. It includes identifiers, timing, status and token counts, plus chosen text such as tool names and descriptions. It does not mean no text leaves the application. Full content adds prompts and responses. The receiving observability platform has its own retention
and access rules. Review those before sending production data.
THE NUMBERS THAT CHANGE THE DECISION
Full-content spans default to a 0.75 MB limit. Oversized content is shortened and flagged anthropic.content.truncated. A complete 1M-token context can need about 4 MB, so do not assume an exported transcript is complete. Raising the limit can conflict with the receiver or proxy's payload
limits.
COUNT TOKENS ONCE
With SDK and API tracing together, use one span source per request, not both. SDK spans are CLIENT; the nested API spans are SERVER, even where both have the same request name. Within API tracing, choose request spans or model-request spans, not both. Retry delivery can duplicate spans:
deduplicate by trace ID and span ID. Input token usage already includes cache reads/writes; adding those again overstates usage. Follow the docs' separate compaction rules when compaction is present.
TRACES ARE NOT THE BILLING LEDGER
Export is best effort and spans can be absent through loss or sampling. Anthropic says to use its Usage API for complete API-key usage accounting. A trace dashboard is useful for debugging and comparisons, not proof that no untraced spend happened.
OUR PROPOSED FIRST TEST, NOT EXECUTED
After specific approval and a verified zero-cost route, use a disposable synthetic workflow: one model call, one harmless client tool and one deliberately slow step. Check the trace tree identifies the slow step, token totals are not doubled, and no prompts/responses appear in