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()?;