From 317db42324a42ebf39172457130e7e622f73aa5e Mon Sep 17 00:00:00 2001 From: Lalit Date: Mon, 4 Nov 2024 17:51:54 -0800 Subject: [PATCH] add comment --- examples/self-diagnostics/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/self-diagnostics/src/main.rs b/examples/self-diagnostics/src/main.rs index c36219ad30..616f5dbe04 100644 --- a/examples/self-diagnostics/src/main.rs +++ b/examples/self-diagnostics/src/main.rs @@ -26,7 +26,9 @@ fn init_logger_provider() -> opentelemetry_sdk::logs::LoggerProvider { let cloned_provider = provider.clone(); - // Specialized filter for specific targets + // Specialized filter to process + // - ERROR logs from specific targets + // - ERROR logs generated internally. let specialized_filter = tracing_subscriber::filter::filter_fn(|metadata| { let target = metadata.target();