Setup
- Python
- TypeScript
Usage
Once initialized, all Anthropic calls are captured automatically:- Python
- TypeScript
What Gets Captured
| Attribute | Description |
|---|---|
| Model | claude-sonnet-4-20250514, claude-haiku-4-5-20251001, etc. |
| Messages | Input messages array |
| Response | Completion content |
| Tokens | Input and output tokens |
| Cost | Calculated from token usage and model pricing |
| Latency | Request duration |
Run the example
Clone the repo and run a complete agent end-to-end.Python
Run the Python example
TypeScript
Run the TypeScript example