Skip to main content

Module observability_traits

Module observability_traits 

Structs§

LlmMessageSnapshot
Full prompt/completion content for one llm.call, captured and credential-scrubbed at the agent-loop boundary so the OTel exporter can emit gen_ai.input.messages / gen_ai.output.messages / gen_ai.system_instructions.
MessageSnapshot
A single conversation message captured for OTel GenAI semconv export. Structurally mirrors crate::model_provider::ChatMessage but is defined independently to keep the observability API decoupled from the model-provider API and to signal that content has been credential-scrubbed at capture time.
ToolCallSnapshot
A tool call the model emitted, captured for gen_ai.output.messages. arguments_json is the raw JSON arguments string, credential-scrubbed.
TurnTokenUsage
Token usage breakdown for a single agent turn.

Enums§

ObserverEvent
Discrete events emitted by the agent runtime for observability.
ObserverMetric
Numeric metrics emitted by the agent runtime.

Traits§

Observer
Core observability trait for recording agent runtime telemetry.