Struct dipstick::sampling::SamplingSink
[−]
[src]
pub struct SamplingSink<S> { /* fields omitted */ }
A sampling sink adapter.
Trait Implementations
impl<M, S> Sink<Sampled<M>> for SamplingSink<S> where
S: Sink<M>,
M: 'static + Send + Sync,
[src]
S: Sink<M>,
M: 'static + Send + Sync,
fn new_metric(&self, kind: Kind, name: &str, sampling: Rate) -> Sampled<M>
[src]
Define a new metric instrument of the requested kind, with the specified name and sample rate.
fn new_scope(&self) -> ScopeFn<Sampled<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