Trait mz_ore::metrics::MakeCollector
source · pub trait MakeCollector:
Collector
+ Clone
+ 'static {
// Required method
fn make_collector(opts: MakeCollectorOpts) -> Self;
}
Available on crate feature
metrics
only.Expand description
A wrapper for creating prometheus metrics more conveniently.
Together with the metric
macro, this trait is mainly used by MetricsRegistry
and should
not normally be used outside the metric registration flow.
Required Methods§
sourcefn make_collector(opts: MakeCollectorOpts) -> Self
fn make_collector(opts: MakeCollectorOpts) -> Self
Creates a new collector.
Object Safety§
This trait is not object safe.