Skip to content
Durable Workflowrust

Trait MetricsRecorder

Source
pub trait MetricsRecorder:
    Send
    + Sync
    + 'static {
    // Required methods
    fn increment(&self, name: &str, value: u64, tags: &MetricTags);
    fn record(&self, name: &str, value: f64, tags: &MetricTags);
}
Expand description

Pluggable, thread-safe recorder. Counter increments are counts; records are seconds.

Required Methods§

Source

fn increment(&self, name: &str, value: u64, tags: &MetricTags)

Source

fn record(&self, name: &str, value: f64, tags: &MetricTags)

Implementors§