Available on crate feature
telemetry only.Expand description
Telemetry (OpenTelemetry integration).
Production observability:
- Distributed tracing
- Metrics collection
- Log correlation
Available with feature: telemetry
Modules§
- global
- Utilities for working with global telemetry primitives
- init
- Telemetry initialization and configuration
- instrument
- Attach a span to a
std::future::Future. - span_
exporter - spans
- Span helpers for common ADK operations
Macros§
- debug
- Constructs an event at the debug level.
- error
- Constructs an event at the error level.
- info
- Constructs an event at the info level.
- trace
- Constructs an event at the trace level.
- warn
- Constructs an event at the warn level.
Structs§
- AdkSpan
Exporter - ADK-Go style span exporter that stores spans by event_id Follows the pattern from APIServerSpanExporter in ADK-Go
- AdkSpan
Layer - Tracing layer that captures spans and exports them via AdkSpanExporter
- Meter
- Provides access to instrument instances for recording measurements.
- Span
- A handle representing a span, with the capability to enter the span if it exists.
Traits§
- Meter
Provider - Provides access to named Meter instances, for instrumenting an application or crate.
Functions§
- add_
context_ attributes - Add common attributes to the current span
- agent_
run_ span - Create a span for agent execution
- callback_
span - Create a span for callback execution
- init_
telemetry - Initialize basic telemetry with console logging
- init_
with_ adk_ exporter - Initialize telemetry with ADK-Go style span exporter This creates a shared span exporter that can be used by both telemetry and debug API Returns the exporter so it can be passed to the debug controller
- init_
with_ otlp - Initialize telemetry with OpenTelemetry OTLP export
- model_
call_ span - Create a span for model API calls
- shutdown_
telemetry - Shutdown telemetry and flush any pending spans
- tool_
execute_ span - Create a span for tool execution
Attribute Macros§
- instrument
- Instruments a function to create and enter a
tracingspan every time the function is called.