Skip to content

Conversation

@copybara-service
Copy link

feat: updating Telemetry

BACKWARD INCOMPATIBLE - The IDs of attributes are changing to comply with Python ADK standards.

Updates the telemetry system by moving and renaming Telemetry.java to telemetry/Tracing.java.

Here's a breakdown of the changes:

  • File Relocation: com.google.adk.Telemetry.java has been moved to com.google.adk.telemetry.Tracing.java.
  • Tracing Implementation Changes:
    • The OpenTelemetry tracer name and various span attribute keys have been updated from using a "gcp.vertex.agent" namespace to a "com.google.adk" or "adk." prefix.
  • A new static field CAPTURE_MESSAGE_CONTENT_IN_SPANS has been added. This boolean, configurable via the ADK_CAPTURE_MESSAGE_CONTENT_IN_SPANS environment variable (defaulting to true), controls whether the full content of LLM requests and responses is included in the OpenTelemetry spans.

@copybara-service copybara-service bot force-pushed the test_860700873 branch 3 times, most recently from 06869ea to 996a48a Compare January 26, 2026 16:03
BACKWARD INCOMPATIBLE - The IDs of attributes are changing to comply with Python ADK standards.

Updates the telemetry system by moving and renaming `Telemetry.java` to `telemetry/Tracing.java`.

Here's a breakdown of the changes:

*  **File Relocation**: `com.google.adk.Telemetry.java` has been moved to `com.google.adk.telemetry.Tracing.java`.
*  **Tracing Implementation Changes**:
    *   The OpenTelemetry tracer name and various span attribute keys have been updated from using a `"gcp.vertex.agent"` namespace to a `"com.google.adk"` or `"adk."` prefix.
*   A new static field `CAPTURE_MESSAGE_CONTENT_IN_SPANS` has been added. This boolean, configurable via the `ADK_CAPTURE_MESSAGE_CONTENT_IN_SPANS` environment variable (defaulting to `true`), controls whether the full content of LLM requests and responses is included in the OpenTelemetry spans.

PiperOrigin-RevId: 861198428
@copybara-service copybara-service bot merged commit 5ba63f4 into main Jan 26, 2026
@copybara-service copybara-service bot deleted the test_860700873 branch January 26, 2026 16:11
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.

1 participant