Skip to main content

metrics_settings

Function metrics_settings 

Source
pub fn metrics_settings(config: &PipelineConfig) -> MetricsSettings
Expand description

The MetricsSettings a pipeline configuration maps to.

Assemblies that pre-register metric handles (sink shard metrics, custom metrics) should call metrics::install(&metrics_settings(&config)) before constructing them; the runtime’s own install then reuses the exporter. Handles built before any install bind to the no-op recorder and render nothing.