Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb committed Nov 5, 2024
1 parent f766af5 commit 317db42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/self-diagnostics/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 317db42

Please sign in to comment.