Cargo Features

[dependencies]
iroh-metrics = { version = "0.30.0", default-features = false, features = ["metrics"] }
default = metrics

The metrics feature is set by default whenever iroh-metrics is added without default-features = false somewhere in the dependency tree.

metrics default = prometheus-client

Affects core::Counter.counter, core::Metric.new, core::Metric.with_metric, metrics::start_metrics_server, metrics::start_metrics_dumper, metrics::start_metrics_exporter

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

prometheus-client metrics