Skip to content

feat: Add support for further telemetry collection with additional signal types and with additional initialization libraries. #320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

michaelsafyan
Copy link

Changes

  • Adds support for initializing additional telemetry subsystems:

    1. Open Telemetry requests instrumentation library - for collecting low-level HTTP requests to/from Vertext/Gemini
    2. Google Gen AI SDK Instrumentation - OTel SemConv aligned model-level instrumentation of LLM calls
  • 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 in adk deploy (and in other commands where not using environment variables manipulation to supply these options).

@michaelsafyan michaelsafyan changed the title Add support for further telemetry collection with additional signal types and with additional initialization libraries. feat: Add support for further telemetry collection with additional signal types and with additional initialization libraries. Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants