pub struct Observability { /* private fields */ }Implementations§
Source§impl Observability
impl Observability
pub fn new(max_metrics_stored: usize) -> Self
pub fn record(&self, metric: RequestMetrics)
pub fn get_metrics(&self, limit: usize) -> Vec<RequestMetrics>
pub fn get_summary(&self) -> ObservabilitySummary
pub fn get_cost_by_model(&self) -> HashMap<String, f64>
pub fn get_savings(&self) -> SavingsReport
pub fn clear(&self)
Trait Implementations§
Source§impl Debug for Observability
impl Debug for Observability
Auto Trait Implementations§
impl Freeze for Observability
impl !RefUnwindSafe for Observability
impl Send for Observability
impl Sync for Observability
impl Unpin for Observability
impl !UnwindSafe for Observability
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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