Kacper Jawoszek and Copybara-Service
a02f321f1b
chore(otel): Change default of trace_to_cloud to None for Agent Engine deploy
...
Also added --no-trace_to_cloud to allow for explicit disablement.
This is needed to distinguish between default-on telemetry and explicit disablement via old enable_tracing/trace_to_cloud flags. Same change was done to ADK templates - see https://github.com/googleapis/python-aiplatform/pull/5917/files#diff-54084046c0ff3ec289916eefbb00d04f797ebd02dc15b417fc4fc88137fd2123R439 .
Co-authored-by: Kacper Jawoszek <jawoszek@google.com >
PiperOrigin-RevId: 827552868
2025-11-03 10:21:12 -08:00
Kacper Jawoszek and Copybara-Service
e50f05a9fc
feat(otel): env variable for disabling llm_request and llm_response in spans
...
The default without the variable set is to keep the content in spans to keep backward compatible behavior for existing users.
This allows to enable tracing without potential PII data from request and response. Google GenAI instrumentation lib requires an explicit opt-in to enable request and response content - see https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation-genai/opentelemetry-instrumentation-google-genai#enabling-message-content .
PiperOrigin-RevId: 820351154
2025-10-16 13:07:27 -07:00
Kacper Jawoszek and Copybara-Service
55aa6f669b
feat(otel): set default_log_name for GCP logging exporter
...
Uses value of GCP_DEFAULT_LOG_NAME env var if it exists, defaults to literal adk-otel.
PiperOrigin-RevId: 817125337
2025-10-09 04:38:26 -07:00
Kacper Jawoszek and Copybara-Service
f157b2ee4c
feat(otel): support standard OTel env variables for exporter endpoints
...
ADK web server will automatically setup OTel providers with exporters if any of the .*_ENDPOINT variables from https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/ is set.
PiperOrigin-RevId: 809079453
2025-09-19 09:59:58 -07:00
Kacper Jawoszek and Copybara-Service
3b80337faf
feat(otel): temporarily disable Cloud Monitoring integration in --otel_to_cloud
...
Currently there is chance for Cloud Monitoring-related errors in logs during shutdown. Let's disable metrics part until it is fixed.
PiperOrigin-RevId: 808930635
2025-09-19 01:28:15 -07:00
Kacper Jawoszek and Copybara-Service
cee365a13d
feat(otel): Add GenAI Instrumentation if --otel_to_cloud is enabled
...
PiperOrigin-RevId: 808460137
2025-09-18 01:33:13 -07:00
Kacper Jawoszek and Copybara-Service
1ae0b82f56
feat(otel): add --otel_to_cloud experimental support
...
Cloud Trace, Cloud Monitoring and Cloud Logging integrations are set up via OTel if otel_to_cloud CLI param/fast_api arg is provided.
This is similar to current Cloud Trace integration via trace_to_cloud, just extended to Monitoring and Logging as well.
PiperOrigin-RevId: 807385680
2025-09-15 14:32:22 -07:00
Kacper Jawoszek and Copybara-Service
7870480c63
feat(otel): add --otel_to_cloud experimental support
...
Cloud Trace, Cloud Monitoring and Cloud Logging integrations are set up via OTel if otel_to_cloud CLI param/fast_api arg is provided.
This is similar to current Cloud Trace integration via trace_to_cloud, just extended to Monitoring and Logging as well.
PiperOrigin-RevId: 807230668
2025-09-15 07:22:19 -07:00
Kacper Jawoszek and Copybara-Service
826f554789
fix: rework parallel_agent.py to always aclose async generators
...
See https://github.com/google/adk-python/issues/1670#issuecomment-3115891100
PiperOrigin-RevId: 797838268
2025-08-21 11:12:35 -07:00
Kacper Jawoszek and Copybara-Service
9645cee3a6
chore: add test for parallel agent to verify correct handling of exceptions
...
PiperOrigin-RevId: 797825924
2025-08-21 10:43:16 -07:00
Kacper Jawoszek and Copybara-Service
70f50db653
chore: add test for parallel agent to verify correct ordering of agents
...
PiperOrigin-RevId: 797817063
2025-08-21 10:21:37 -07:00
Kacper Jawoszek and Copybara-Service
9cfe43334a
fix: Uncomment OTel tracing in base_llm_flow.py
...
It was mistakenly commented out in the previous change.
PiperOrigin-RevId: 795048873
2025-08-14 08:20:07 -07:00
Kacper Jawoszek and Copybara-Service
a30c63c593
fix: aclose all async generators to fix OTel tracing context
...
See https://github.com/google/adk-python/issues/1670#issuecomment-3115891100
PiperOrigin-RevId: 794659547
2025-08-13 11:18:26 -07:00