Trait ore::metrics::MakeCollector [−][src]
pub trait MakeCollector: Collector + Clone + 'static {
fn make_collector(opts: Opts) -> Self;
}This is supported 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
fn make_collector(opts: Opts) -> Self
fn make_collector(opts: Opts) -> Self
Creates a new collector.