pub enum ObserverMetric {
RequestLatency(Duration),
TokensUsed(u64),
ActiveSessions(u64),
QueueDepth(u64),
}Expand description
Numeric metrics emitted by the agent runtime.
Observers can aggregate these into dashboards, alerts, or structured logs. Each variant carries a single scalar value with implicit units.
Variants§
RequestLatency(Duration)
Time elapsed for a single LLM or tool request.
TokensUsed(u64)
Number of tokens consumed by an LLM call.
ActiveSessions(u64)
Current number of active concurrent sessions.
QueueDepth(u64)
Current depth of the inbound message queue.
Trait Implementations§
Source§impl Clone for ObserverMetric
impl Clone for ObserverMetric
Source§fn clone(&self) -> ObserverMetric
fn clone(&self) -> ObserverMetric
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ObserverMetric
impl RefUnwindSafe for ObserverMetric
impl Send for ObserverMetric
impl Sync for ObserverMetric
impl Unpin for ObserverMetric
impl UnsafeUnpin for ObserverMetric
impl UnwindSafe for ObserverMetric
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more