Setup
agent_framework, so the OpenTelemetry instrumentation is wired up before the framework emits its first span.
Usage
Once initialized, every agent invocation, model call, and tool execution is captured automatically:execute_tool span for each call, so they don’t need manual decoration.
What Gets Captured
| Attribute | Description |
|---|---|
| Agent run | Each agent invocation as a span (nested for delegated agents) |
| Model | The chat model used for each call |
| Tool calls | An execute_tool span per tool execution, with arguments |
| Response | Generated text and tool outputs |
| Tokens | Input and output token counts |
| Cost | Calculated from token usage and model pricing |
| Latency | Request duration |
Run the example
Clone the repo and run a complete multi-agent example end-to-end.Python
Run the Python example