Expand description
Unified, pluggable observability export.
TokenTrackingLLM (token usage) and AgentExecutor (per-run metrics) both
write through the same MetricsSink interface with an ObsEvent payload.
The framework only provides the capability — no concrete sink is bundled here
(see the lc-observability crate for JsonLinesSink/MongoSink). Failures
are logged as warn and never interrupt the main flow.
Structs§
- Agent
Metrics - Aggregated metrics for a single agent execution.
- Cost
Event - Priced cost of one LLM call (emitted by
CostTracker).
Enums§
- ObsError
- Export error. Implementations surface failures through this and the framework
layer only logs a
warn— it never propagates into the main flow. - ObsEvent
- One observability record (the unified export payload).
Traits§
- Metrics
Sink - Pluggable observability sink. The framework only provides the interface and binds no concrete plugin.