You've already forked adk-python
mirror of
https://github.com/encounter/adk-python.git
synced 2026-03-30 10:57:20 -07:00
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
This commit is contained in:
committed by
Copybara-Service
parent
d4eaa06041
commit
3b80337faf
@@ -306,7 +306,8 @@ def _setup_telemetry_experimental(
|
||||
# TODO - use trace_to_cloud here as well once otel_to_cloud is no
|
||||
# longer experimental.
|
||||
enable_cloud_tracing=True,
|
||||
enable_cloud_metrics=True,
|
||||
# TODO - reenable metrics once errors during shutdown are fixed.
|
||||
enable_cloud_metrics=False,
|
||||
enable_cloud_logging=True,
|
||||
)
|
||||
)
|
||||
@@ -501,8 +502,8 @@ class AdkWebServer:
|
||||
tear_down_observer: Callback for cleaning up the file system observer.
|
||||
register_processors: Callback for additional Span processors to be added
|
||||
to the TracerProvider.
|
||||
otel_to_cloud: EXPERIMENTAL. Whether to enable Cloud Trace,
|
||||
Cloud Monitoring and Cloud Logging integrations.
|
||||
otel_to_cloud: EXPERIMENTAL. Whether to enable Cloud Trace
|
||||
and Cloud Logging integrations.
|
||||
|
||||
Returns:
|
||||
A FastAPI app instance.
|
||||
|
||||
@@ -815,8 +815,7 @@ def fast_api_common_options():
|
||||
default=False,
|
||||
help=(
|
||||
"EXPERIMENTAL Optional. Whether to write OTel data to Google Cloud"
|
||||
" Observability services - Cloud Trace, Cloud Monitoring and Cloud"
|
||||
" Logging."
|
||||
" Observability services - Cloud Trace and Cloud Logging."
|
||||
),
|
||||
)
|
||||
@click.option(
|
||||
|
||||
Reference in New Issue
Block a user