Installation
Install both the Netra SDK and Google Generative AI SDK:Usage
Initialize the Netra SDK with Gemini instrumentation enabled. The SDK automatically traces all Gemini API calls once initialized.Streaming Responses
The SDK automatically handles streaming responses and captures the complete output:Chat Sessions
Chat operations are also automatically instrumented:Selective Instrumentation
Control which integrations are enabled using theinstruments or blockInstruments configuration:
Next Steps
- Quick Start Guide - Complete setup and configuration
- Auto Instrumentation - Automatic tracing for supported libraries
- Decorators - Add custom tracing with
@workflow,@agent, and@taskdecorators - Session Tracking - Track user sessions and conversations
- Gemini Documentation - Official Google Gemini API quickstart guide