FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

ref: Add span filtering to span first (15) by sentrivana · Pull Request #5633 · getsentry/sentry-python · GitHub

ref: Add span filtering to span first (15) - #5633

Merged
sentrivana merged 104 commits into
masterfrom
ivana/span-first-15-ignore-spans
Mar 12, 2026
Merged

ref: Add span filtering to span first (15)#5633
sentrivana merged 104 commits into
masterfrom
ivana/span-first-15-ignore-spans

Conversation

sentrivana commented Mar 11, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

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.

Spec: https://develop.sentry.dev/sdk/telemetry/spans/filtering/#filter-with-ignorespans

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL