getsentry / getsentry/sentry-python

Span Filter Option ignoreSpans

Ouverte
#3,859 4 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
Feature Python Spans
Langage dominant
Python
Étoiles
2.2k
Forks
669
Merge moyen
1 j 1 h
PR mergées (30 j)
213

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.