getsentry / getsentry/sentry-python

Span Filter Option ignoreSpans

Offen
#3,859 4 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Feature Python Spans
Vorherrschende Sprache
Python
Sterne
2.2k
Forks
669
Ø Merge
1 T. 40 Min.
Gemergte PRs (30 T.)
212

Beschreibung

### Problem Statement

Hi, there's no way to filter out spans, like beforeSpan in javascript (which is getting deprecated in v9 JS SDK)
![Image](https://github.com/user-attachments/assets/423603fb-6e8a-4246-86ec-4f248fc1a613)

similar GH issue
- https://github.com/getsentry/sentry-python/issues/3245
- https://github.com/getsentry/sentry-python/issues/1895

### Solution Brainstorm

```
Sentry.init({
ignorSpans: ['span_description']
})
```

or it could take a span attribute that represents multiple, like something for this span type that always says 'browser', maybe user wants to remove all spans that say browser.
![Image](https://github.com/user-attachments/assets/c6d40342-b8b5-4a9a-9eca-0316b18f3d70)

or maybe user wants 1 http spans for a http request but not all the sub spans here like .proxy .dns etc.
![Image](https://github.com/user-attachments/assets/2692979c-37b8-4ac2-b8f5-ab6c59740b31)

regex would work nice

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.