#1634·adk-go

telemetry: default to the experimental OpenTelemetry GenAI semantic conventions, with a one-env rollback

Author: RKestCreated Sep 23, 2026Updated Sep 23, 2026

Required Information

Is your feature request related to a specific problem?

ADK Go telemetry mixes three formats: stable-semconv (v1.36) log events (gen_ai.system.message, gen_ai.user.message, gen_ai.choice), experimental-semconv content attributes on generate_content, and ADK-specific gcp.vertex.agent.tool_call_args / gcp.vertex.agent.tool_response attributes on execute_tool. The last two record tool arguments and results on every span, whatever OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT says. The OpenTelemetry GenAI instrumentations have since moved to the experimental conventions by default, and adk-python is migrating the same way behind ADK_TELEMETRY_SCHEMA_VERSION_OPT_IN (src/google/adk/telemetry/_schema_version.py).

Proposed Solution

  • Emit the experimental OpenTelemetry GenAI semantic conventions by default:
    • one gen_ai.client.inference.operation.details event per model call, replacing the three stable events;
    • gen_ai.tool.call.arguments / gen_ai.tool.call.result on execute_tool, recorded only when span content capture is on;
    • an entrypoint invoke_workflow {root} span above a non-workflow root agent, as adk-python's schema v2 does.
  • ADK_TELEMETRY_SCHEMA_VERSION_OPT_IN=1 restores today's format exactly, for at least six months.
  • Record/replay golden tests for telemetry, mirroring adk-python's tests/unittests/telemetry/test_functional.py.

Impact on your work

Consumers get one format, the same as other OpenTelemetry GenAI instrumentations, and tool payloads stop being captured by default.

Recommended Information

Alternatives Considered

Keeping the legacy format as the default and making the new one opt-in, as adk-python does today outside Agent Engine. That keeps tool payloads captured by default and keeps the Go format diverging from the conventions.

Willingness to contribute

Yes, PR to follow.