In span first, we're introducing a new span filtering init option called ignore_spans which allows to ignore spans at start time based on name and attributes.
Spans ignored this way emit a new ignored client report (set via NoOpStreamedSpan.unsampled_reason).
If a segment matches one of the rules in ignore_spans, the whole span tree will be ignored. The implementation achieves this by allowing NoOpStreamedSpans to be set on the scope in this one single case, so that their children can easily determine their segment was dropped.
If a segment is not ignored but one of its children spans (regardless of depth) is, ONLY that one span will be ignored, not its whole subtree.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In span first, we're introducing a new span filtering init option called ignore_spans which allows to ignore spans at start time based on name and attributes.
Spec: https://develop.sentry.dev/sdk/telemetry/spans/filtering/#filter-with-ignorespans