Expand description
The engine’s ADK telemetry as tracing spans and events: the spans (invoke_workflow,
invoke_node, generate_content, execute_tool, compact_events; agents’ own invoke_agent
spans come from gadk-agent) and the OTel log records.
No OpenTelemetry: the static span name is the operation and otel.name the full span name;
every other field is an OTel attribute (structured values per converters). All spans are
INFO. A tracing span records only the fields it declares, so each constructor declares every
attribute that may be set on it later as Empty, plus otel.status_code and error.message
(the span status and its description).
The module is public for set_env_provider, LOG_TARGET and d6 (the shared decoder of
this layout); everything else stays crate-private. Submodules: env (the process-wide
environment provider and its rules), the span attributes (attrs, converters, inference,
instrumentation, semconv, genai_messages), the OTel log records of the legacy schema
(logger), and the test digests (span_digest, log_digest).
Modules§
- d6
- The one decoder of gadk’s ADK telemetry as
tracingcarries it, shared by every consumer: gadk-server’s debug store, the engine’s test digests and gadk-telemetry’s OpenTelemetry bridge. No OpenTelemetry dependency; consumers render the decoded values.
Constants§
- LOG_
TARGET - The
tracingtarget of the OTel log records; atracinglayer that collects them (gadk-server’s debug store) filters on it.
Functions§
- current_
span_ ids - The
SpanIdsof the nearest enclosing span (the current span first, then its ancestors) that carries them in itstracingregistry extensions — the IDs gadk-telemetry’s bridge leaves on every ADK span it exports. The analytics plugin reads them where it needs the current trace and span IDs.Noneoutside any span, when no enclosing span carries IDs (no bridge installed), or under a subscriber that is not atracing_subscriber::Registrystack (asgadk_agent::agent::telemetry::in_workflow_scope). - set_
env_ provider - Installs the process-wide environment the engine’s telemetry reads
(
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT,ADK_TELEMETRY_SCHEMA_VERSION_OPT_IN); the default is the process environment. The cached content-capture mode is dropped, so the next read usesenv.