From 05edd234162f9ca54101a00ef58f1089100f86a3 Mon Sep 17 00:00:00 2001 From: Lalit Kumar Bhasin Date: Mon, 10 Jun 2024 17:23:24 -0700 Subject: [PATCH] fix collect interval --- examples/self-diagnostics/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/self-diagnostics/src/main.rs b/examples/self-diagnostics/src/main.rs index 04585d2bcf..618b70cf2e 100644 --- a/examples/self-diagnostics/src/main.rs +++ b/examples/self-diagnostics/src/main.rs @@ -136,9 +136,9 @@ async fn main() -> Result<(), Box> { rx.recv().expect("Could not receive from channel."); println!("Got Ctrl-C, Doing shutdown and existing."); - // Metrics are exported by default every 30 seconds when using stdout exporter, + // Metrics are exported by default every 1 seconds when using stdout exporter, // however shutting down the MeterProvider here instantly flushes - // the metrics, instead of waiting for the 30 sec interval. + // the metrics, instead of waiting for the 1 sec interval. meter_provider.shutdown()?; // shutdown again to trigger error message. meter_provider.shutdown()?;