File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
examples/logs-advanced/src Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ impl<P: LogProcessor> LogProcessor for SlowEnrichmentLogProcessor<P> {
120120 #[ cfg( feature = "spec_unstable_logs_enabled" ) ]
121121 fn event_enabled ( & self , level : Severity , target : & str , name : Option < & str > ) -> bool {
122122 // It is important to call the delegate's event_enabled method to ensure that
123- // any filtering or logic implemented by downstream processors is respected.
123+ // any filtering or logic implemented by downstream processors is respected so
124+ // that no unnecessary work is done, causing an unwanted performance issue.
124125 // Skipping this call could result in logs being emitted that should have been filtered out
125126 // or in bypassing other custom logic in the processor chain.
126127 self . delegate . event_enabled ( level, target, name)
You can’t perform that action at this time.
0 commit comments