getsentry / getsentry/sentry-python

Span Filter Option ignoreSpans

Abierto
#3,859 4 comentarios 1 reacción 0 asignados Ver en GitHub
Feature Python Spans
Lenguaje dominante
Python
Estrellas
2.2k
Forks
669
Merge medio
1 d 1 h
PR fusionados (30 d)
213

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.