-
Notifications
You must be signed in to change notification settings - Fork 106
Closed
Description
let total_bytes: Family<TrafficLabels, Counter> = Family::default();
let connection_count: Family<ConnectionLabels, Gauge> = Family::default();
let mut registry = Registry::default();
registry.register(
"total_bytes",
"Accumulated bytes going through sever",
Box::new(total_bytes.clone()),
);
registry.register(
"connection count",
"Count of current connections",
Box::new(connection_count.clone()),
);results in:
mismatched types
expected struct `Family<TrafficLabels, prometheus_client::metrics::counter::Counter, fn() -> prometheus_client::metrics::counter::Counter>`
found struct `Family<ConnectionLabels, prometheus_client::metrics::gauge::Gauge, fn() -> prometheus_client::metrics::gauge::Gauge>`rustc[E0308](https://doc.rust-lang.org/error-index.html#E0308)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels