pub struct LlmMetricsReport {Show 13 fields
pub total_calls: u64,
pub successful_calls: u64,
pub failed_calls: u64,
pub success_rate: f64,
pub total_input_tokens: u64,
pub total_output_tokens: u64,
pub total_tokens: u64,
pub avg_latency_ms: f64,
pub total_latency_ms: u64,
pub estimated_cost_usd: f64,
pub rate_limit_errors: u64,
pub timeout_errors: u64,
pub fallback_triggers: u64,
}Expand description
LLM metrics report.
Fields§
§total_calls: u64Total number of LLM calls.
successful_calls: u64Number of successful calls.
failed_calls: u64Number of failed calls.
success_rate: f64Success rate (0.0 - 1.0).
total_input_tokens: u64Total input tokens.
total_output_tokens: u64Total output tokens.
total_tokens: u64Total tokens (input + output).
avg_latency_ms: f64Average latency in milliseconds.
total_latency_ms: u64Total latency in milliseconds.
estimated_cost_usd: f64Estimated cost in USD.
rate_limit_errors: u64Number of rate limit errors.
timeout_errors: u64Number of timeout errors.
fallback_triggers: u64Number of fallback triggers.
Trait Implementations§
Source§impl Clone for LlmMetricsReport
impl Clone for LlmMetricsReport
Source§fn clone(&self) -> LlmMetricsReport
fn clone(&self) -> LlmMetricsReport
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 LlmMetricsReport
impl RefUnwindSafe for LlmMetricsReport
impl Send for LlmMetricsReport
impl Sync for LlmMetricsReport
impl Unpin for LlmMetricsReport
impl UnsafeUnpin for LlmMetricsReport
impl UnwindSafe for LlmMetricsReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more