feat: Add support for further telemetry collection with additional signal types and with additional initialization libraries. #320
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
Adds support for initializing additional telemetry subsystems:
Adds support for generating logs and metrics in addition to traces
Adds the ability to use
ADK_CLOUD_O11Y=1
to cover logs, traces, and metrics (individual signal types can be covered with individual environment variables as well:ADK_TRACE_TO_CLOUD
,ADK_LOGS_TO_CLOUD
,ADK_METRICS_TO_CLOUD
).Adds support for more general OTel export; for example, users can set
OTEL_EXPORTER_OTLP_ENDPOINT
to an arbitrary OTLP endpoint to export logs, traces, and metrics (as an alternative to Google Cloud Observability, or to use the Open Telemetry Collector as part of their process for ingestion into Google Cloud).Not Included
This DOES NOT change the logic to deploy to Cloud Run or the command line interface. The commandline currently has a
--trace_to_cloud
environment variables that does not cover the full feature set here. A separate change would need to be made to expose these additional capabilities inadk deploy
(and in other commands where not using environment variables manipulation to supply these options).