Claude API adds OpenTelemetry tracing with GenAI spans and optional full prompt export

ClaudeDevs · x · 2026-10-15

Anthropic now emits OpenTelemetry spans for Claude API and SDK requests, following the GenAI semantic conventions. Spans carry duration, status, token counts, model and tool names by default; switching a destination to "full content" also exports prompts, responses and tool inputs/outputs. Use cases include debugging slow/failed requests, tracking token spend and building evals from real traffic.

Related event: Anthropic Brings OpenTelemetry Tracing to Claude Platform in Public Beta(12 posts)→

Original post →

More from coding & agent

coding & agent channel →