Google ADK
Overview
respan-instrumentation-google-adk is an instrumentation plugin that captures traces from the Google Agent Development Kit and sends them to Respan through the unified OTEL pipeline.
The package wraps the upstream OpenInference Google ADK instrumentor and registers a Google-ADK-specific span processor. That processor composes Respan’s generic OpenInference translation and applies ADK-only normalization in this package, so ADK runner, agent, LLM, and tool spans are emitted as Respan log types with gen_ai.*, llm.*, and traceloop.entity.* attributes.
Version: 0.1.0 | Python: >=3.11, <3.14
Dependencies
Quick start
Public API
GoogleADKInstrumentor
The main instrumentor class. Implements the Instrumentation protocol.
activate()
When called, activate():
- Imports
openinference.instrumentation.google_adk.GoogleADKInstrumentor. - Inserts
GoogleADKSpanProcessorbefore Respan export processors. - Calls the upstream instrumentor’s
instrument()method so ADK emits spans through OpenTelemetry.
If tracing is disabled through Respan(is_enabled=False), activation is skipped.
deactivate()
Calls the upstream OpenInference instrumentor’s uninstrument() method and removes the Google ADK span processor.
Captured span types
Span attributes
All translated spans include these common attributes:
LLM spans additionally include:
With propagated attributes
Use propagate_attributes() to attach per-request metadata to all spans:
Architecture
Internal modules
These are implementation details, not part of the public API: