Using the standard Anthropic SDK? Check out the general Tracing Quickstart for the proxy method that works with any Anthropic client.
Steps
1
Set up environment variables
Configure the OpenTelemetry exporter to send traces to Scorecard. You’ll need your Scorecard API key from Settings.
Replace
<your_scorecard_api_key> with your actual Scorecard API key (starts with ak_), and <your-project-id> with the project you want traces to land in.2
Run your agent
With the environment variables configured, run your Claude Agent SDK application. All agent activity is automatically traced.
example.py
3
View traces in Scorecard
Navigate to the Records page in Scorecard to see your agent traces. Click any record to open its trace detail panel, which breaks the trace into four tabs: Conversation, Timeline, Chat, and Debug.The Conversation tab shows a chat-like replay of user messages, assistant responses, and tool calls.The Timeline tab shows a Gantt chart-style breakdown of every span, so you can see how LLM calls and tool executions overlap and how long each takes.The Chat tab lets you ask questions about the trace in natural language—what happened, why a step failed, or how it performed—and compare records side by side.The Debug tab pairs the full span tree with a trace overview—duration, cost, tokens, and model—plus the raw span data for deeper inspection.
Anatomy of a trace
Explore how a Claude Agent SDK trace is structured—spans, tool calls, model usage, and metadata—in this interactive demo:Next Steps
Tracing Features
Learn about advanced tracing patterns and trace grouping
Metrics
Create custom metrics to evaluate agent performance