Skip to main content

Module observability

Module observability 

Source
Available on crate feature otel only.
Expand description

OpenTelemetry observability module.

This module is only compiled when the otel feature is enabled. It provides span instrumentation, payload capture, and context propagation for the agent SDK’s core orchestration boundaries.

Re-exports§

pub use payload_capture::is_payload_capture_enabled;
pub use payload_capture::set_payload_capture_enabled;
pub use types::CaptureDecision;
pub use types::CaptureKind;
pub use types::CaptureResult;
pub use types::ObservabilityStore;
pub use types::PayloadBundle;

Modules§

attrs
Span attribute helpers and constants.
baggage
Baggage helpers for propagating trace-level attributes onto every span.
context
OpenTelemetry context propagation helpers for async boundaries.
instrument
Instrumentation helpers called from agent loop code paths.
langfuse
Native Langfuse attribute helpers.
loop_instrument
Reusable chat / execute_tool span + metric helpers.
metrics
GenAI client + SDK-specific metric instruments.
payload
GenAI payload conversion from SDK types to semconv JSON.
payload_capture
Process-wide payload-capture gate.
provider_name
Provider name normalization to GenAI semconv canonical values.
spans
Span construction and lifecycle helpers.
types
Core observability types and the ObservabilityStore trait.