Skip to main content

Metrics

Trait Metrics 

Source
pub trait Metrics: Closer + Send {
    // Required method
    fn record(&mut self, metric: MetricEntry);
}
Expand description

Trait for metrics backends.

Implementations of this trait are responsible for recording and exposing metrics from the fiddler runtime. The trait is designed to be lightweight and non-blocking to avoid impacting pipeline performance.

Required Methods§

Source

fn record(&mut self, metric: MetricEntry)

Records current metrics values to the backend.

This method is called periodically by the runtime to update metrics. Implementations should be fast and non-blocking.

§Arguments
  • metric - MetricEntry struct with details about metrics to be published

Implementors§