Setup
Enable instrumentation with a single function call. This will automatically track all subsequent calls toGenerativeModel.
Usage
Once instrumented, use the Gemini client as you normally would. The SDK automatically captures:- Model name
- Input prompts
- Generated content
- Token usage
- Latency

