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:
Kacper Jawoszek
2025-09-19 01:27:38 -07:00
committed by Copybara-Service
parent d4eaa06041
commit 3b80337faf
2 changed files with 5 additions and 5 deletions
+4 -3
View File
@@ -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.
+1 -2
View File
@@ -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(