google-genai SDK.
Setup
Usage
Once initialized, all Gemini calls are captured automatically — including tool calls:What Gets Captured
| Attribute | Description |
|---|---|
| Model | gemini-2.5-flash, gemini-2.0-pro, etc. |
| Contents | Input messages |
| Response | Generated text and function calls |
| Tokens | Input and output token counts |
| Cost | Calculated from token usage and model pricing |
| Latency | Request duration |