File tree Expand file tree Collapse file tree 7 files changed +1914
-1345
lines changed Expand file tree Collapse file tree 7 files changed +1914
-1345
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ Configure the environment and run the sample:
3535python -m venv venv/
3636source venv/bin/activate
3737pip install -r requirements.txt
38- env $( cat opentelemetry.env | xargs) python main.py
38+ env $( cat opentelemetry.env | xargs) adk web --otel_to_cloud
3939```
4040
4141Alternatively if you have [ ` uv ` ] ( https://docs.astral.sh/uv/ ) installed:
4242
4343``` sh
44- uv run --env-file opentelemetry.env main.py
44+ uv run --env-file opentelemetry.env adk web --otel_to_cloud
4545```
4646
4747## Viewing the results
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ OTEL_SERVICE_NAME = adk-sql-agent
12OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED = true
23OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT = true
4+
5+ # Prevent ADK instrumentation from overwhelming span attribute limits. This will be the default in the future.
6+ ADK_CAPTURE_MESSAGE_CONTENT_IN_SPANS = false
Original file line number Diff line number Diff line change @@ -19,13 +19,11 @@ description = "An ADK agent that can run queries on an ephemeral SQLite database
1919readme = " README.md"
2020requires-python = " >=3.12"
2121dependencies = [
22- " google-adk>=1.6.1 " ,
22+ " google-adk>=1.17.0 " ,
2323 " opentelemetry-exporter-gcp-logging>=1.9.0a0" ,
2424 " opentelemetry-exporter-gcp-monitoring>=1.9.0a0" ,
2525 " opentelemetry-exporter-otlp-proto-grpc>=1.33.0" ,
26- " opentelemetry-instrumentation-google-genai>=0.2b0" ,
27- " opentelemetry-instrumentation-httpx>=0.54b0" ,
28- " opentelemetry-instrumentation-requests>=0.54b0" ,
26+ " opentelemetry-instrumentation-google-genai>=0.4b0" ,
2927 " opentelemetry-instrumentation-sqlite3>=0.54b0" ,
3028 " opentelemetry-instrumentation-vertexai>=2.0b0" ,
3129]
You can’t perform that action at this time.
0 commit comments