getsentry / getsentry/sentry-python

Span Filter Option ignoreSpans

Aperta
#3,859 4 commenti 1 reazione 0 assegnatari Vedi su GitHub
Feature Python Spans
Lingua principale
Python
Stelle
2.2k
Fork
669
Merge medio
1g 1h
PR unite (30g)
213

Descrizione

### 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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.