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 token usage, latency, and errors ready for dashboards.
Create a new Claude Platform source in Better Stack
As an admin of your Claude Console organization:
/v1/traces. Claude adds it.Authorization with the value below.
spans.anthropic.test span arrived.The Console's message names the error. HTTP 401 or 403 means the Authorization header value doesn't match your source token.
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.
The source extracts these metrics from the spans, so you can chart them in dashboards:
gen_ai_input_tokens, gen_ai_output_tokens, gen_ai_cache_read_input_tokens, and gen_ai_cache_write_input_tokens. Each token is counted once, following Anthropic's counting rule. Input tokens already include cache reads and writes.gen_ai_model, gen_ai_operation, gen_ai_tool_name, gen_ai_agent_name, error_type, stop_reason, workspace_id, and outcome_evaluation_result.duration, as on any traces source.For every span and attribute Claude sends, see Anthropic's span reference.
Please let us know at hello@betterstack.com. We're happy to help! π
We use cookies to authenticate users, improve the product user experience, and for personalized ads. Learn more.