Start Debugging

opentelemetry

12 posts · Page 1 of 2

How to Trace Anthropic SDK Calls With the Built-In OpenTelemetry Export

The Anthropic Python and TypeScript SDKs now emit OpenTelemetry spans on their own: register a tracer provider before the first call and every messages.create becomes an anthropic.messages.create CLIENT span with gen_ai.* token, model and stop-reason attributes. Content mode, conversation IDs, user.id baggage, linking to the Claude Platform's server-side spans, streaming and tool runner behavior, and the env-var override trap, checked against anthropic 2.8.0.

How to Export GitHub Copilot App Agent Sessions to an OpenTelemetry Backend

Send GitHub Copilot app agent traces, token metrics and events to your own OTLP collector with the telemetry block in enterprise managed settings. Covers every telemetry key, the six content-capture classes, delivery via .github-private, MDM or a root-owned file, channel precedence, a collector config with bearer auth, and the gotchas that make exports silently go nowhere.
Next