getsentry / getsentry/sentry-python

Span Filter Option ignoreSpans

オープン
#3,859 コメント 4 件 リアクション 1 件 担当者 0 名 GitHub で見る
Feature Python Spans
主要言語
Python
スター
2.2k
フォーク
669
平均マージ
1日 1時間
マージ済み PR(30日)
213

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。