Cargo Features

[dependencies]
iroh-metrics = { version = "0.31.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

Enables http-body-util, hyper, hyper-util, prometheus-client ^0.22, reqwest, and tokio

http-body-util:

metrics feature

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