Skip to content

Commit 3da4cfd

Browse files
authored
Fix confusion in the SpanFilter docstring (#3851)
The docstring was claiming that a truthy value from the filter block keeps the span, but in fact it's the other way around, a truthy value drops the span.
1 parent 7b22f21 commit 3da4cfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/datadog/tracing/pipeline/span_filter.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ module Pipeline
1010
# This processor executes the configured `operation` for each {Datadog::Tracing::Span}
1111
# in a {Datadog::Tracing::TraceSegment}.
1212
#
13-
# If `operation` returns a truthy value for a span, that span is kept,
14-
# otherwise the span is removed from the trace.
13+
# If `operation` returns a truthy value for a span, that span is dropped,
14+
# otherwise the span is kept.
1515
#
1616
# @public_api
1717
class SpanFilter < SpanProcessor

0 commit comments

Comments
 (0)