Struct dipstick::MetricCache
[−]
[src]
pub struct MetricCache<M, S> { /* fields omitted */ }
A cache to help with ad-hoc defined metrics Does not alter the values of the metrics
Trait Implementations
impl<M, S> Debug for MetricCache<M, S> where
S: Debug,
[src]
S: Debug,
impl<M, S> Sink<M> for MetricCache<M, S> where
S: Sink<M>,
M: 'static + Clone + Send + Sync,
[src]
S: Sink<M>,
M: 'static + Clone + Send + Sync,
fn new_metric(&self, kind: Kind, name: &str, sampling: Rate) -> M
[src]
Define a new metric instrument of the requested kind, with the specified name and sample rate.
fn new_scope(&self, auto_flush: bool) -> ScopeFn<M>
[src]
Returns a callback function to send scope commands. Writes can be performed by passing Some((&Metric, Value)) Flushes can be performed by passing None Read more