You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Google ADK (Agent Development Kit) Python Agent provides observability for Google ADK applications.
4
-
This document provides examples of usage and results in the Google ADK instrumentation.
5
-
For details on usage and installation of LoongSuite and Jaeger, please refer to [LoongSuite Documentation](https://github.com/alibaba/loongsuite-python-agent/blob/main/README.md).
For details on LoongSuite and Jaeger setup, refer to [LoongSuite Documentation](https://github.com/alibaba/loongsuite-python-agent/blob/main/README.md).
After [setting up Jaeger](https://www.jaegertracing.io/docs/latest/getting-started/), you can visualize the complete trace hierarchy in the Jaeger UI, showing the relationships between Runner, Agent, LLM, and Tool spans
117
192
118
193
## Configuration
119
194
@@ -124,6 +199,7 @@ The following environment variables can be used to configure the Google ADK inst
124
199
| Variable | Description | Default |
125
200
|----------|-------------|---------|
126
201
|`OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT`| Capture message content in traces |`false`|
202
+
|`DASHSCOPE_API_KEY`| DashScope API key (required for demo) | - |
127
203
128
204
### Programmatic Configuration
129
205
@@ -225,11 +301,28 @@ This instrumentation follows the OpenTelemetry GenAI semantic conventions:
225
301
226
302
### Common Issues
227
303
228
-
1.**Module Import Error**: If you encounter `No module named 'google.adk.runners'`, ensure that `google-adk` is properly installed.
304
+
1.**Module Import Error**: If you encounter `No module named 'google.adk.runners'`, ensure that `google-adk` is properly installed:
305
+
```bash
306
+
pip install google-adk>=0.1.0
307
+
```
308
+
309
+
2.**DashScope API Error**: If you see authentication errors, verify your API key is correctly set:
310
+
```bash
311
+
export DASHSCOPE_API_KEY=your-api-key
312
+
# Verify it's set
313
+
echo$DASHSCOPE_API_KEY
314
+
```
315
+
316
+
3.**Instrumentation Not Working**:
317
+
- Check that the instrumentation is enabled and the Google ADK application is using the `Runner` class
318
+
- Verify you see the log message: `Plugin 'opentelemetry_adk_observability' registered`
319
+
- For manual instrumentation, ensure you call `GoogleAdkInstrumentor().instrument()` before creating the Runner
229
320
230
-
2.**Instrumentation Not Working**: Check that the instrumentation is enabled and the Google ADK application is using the `Runner` class.
321
+
4.**Missing Traces**:
322
+
- Verify that the OpenTelemetry exporters are properly configured
323
+
- Check the `OTEL_TRACES_EXPORTER` environment variable is set (e.g., `console`, `otlp`)
324
+
- For OTLP exporter, ensure the endpoint is reachable
231
325
232
-
3.**Missing Traces**: Verify that the OpenTelemetry exporters are properly configured.
0 commit comments