aboutsummaryrefslogtreecommitdiff
path: root/src/proxy_config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/proxy_config.rs')
-rw-r--r--src/proxy_config.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/proxy_config.rs b/src/proxy_config.rs
index 43d3929..dab4d98 100644
--- a/src/proxy_config.rs
+++ b/src/proxy_config.rs
@@ -334,7 +334,7 @@ pub fn spawn_proxy_config_task(
// ----
struct ProxyConfigMetrics {
- _proxy_config_entries: metrics::ValueObserver<u64>,
+ _proxy_config_entries: metrics::ObservableGauge<u64>,
}
impl ProxyConfigMetrics {
@@ -342,7 +342,8 @@ impl ProxyConfigMetrics {
let meter = opentelemetry::global::meter("tricot");
Self {
_proxy_config_entries: meter
- .u64_value_observer("proxy_config_entries", move |observer| {
+ .u64_observable_gauge("proxy_config_entries")
+ .with_callback(move |observer| {
let mut patterns = HashMap::new();
for ent in rx.borrow().entries.iter() {
let attrs = (