OpenTelemetry-based instrumentation for the Anthropic Claude Agent SDK, enabling tracing of agent runs, tool calls, and LLM interactions with OpenInference semantics. Version 0.1.5, compatible with Python 3.10-3.14. Actively maintained by Arize AI.
pip install openinference-instrumentation-claude-agent-sdkNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize OpenTelemetry and instrument the Claude Agent SDK. Requires an OTLP endpoint (e.g., Phoenix) to collect traces.
Move instrument() to the top of your script, before any anthropic imports.
Replace `ClaudeAgentInstrumentor` with `ClaudeAgentSDKInstrumentor` and update the import path.
Remove `suppress_tracing=True` from the instrument() call. It is no longer effective.