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_toolspan + metric helpers. - metrics
GenAIclient + SDK-specific metric instruments.- payload
GenAIpayload conversion from SDK types to semconv JSON.- payload_
capture - Process-wide payload-capture gate.
- provider_
name - Provider name normalization to
GenAIsemconv canonical values. - spans
- Span construction and lifecycle helpers.
- types
- Core observability types and the
ObservabilityStoretrait.