diff --git a/processor/filterprocessor/filter_processor_traces.go b/processor/filterprocessor/filter_processor_traces.go index b4ec68b86197..b480ce3f7d36 100644 --- a/processor/filterprocessor/filter_processor_traces.go +++ b/processor/filterprocessor/filter_processor_traces.go @@ -118,7 +118,7 @@ func (fsp *filterSpanProcessor) shouldRemoveSpan(span pdata.Span, resource pdata } if fsp.exclude != nil { - if e := fsp.exclude.MatchSpan(span, resource, library); e { + if fsp.exclude.MatchSpan(span, resource, library) { return true } }