sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

Span Filter Option ignoreSpans

Open thinkocapo opened this issue 1 year ago • 4 comments

Problem Statement

Hi, there's no way to filter out spans, like beforeSpan in javascript (which is getting deprecated in v9 JS SDK) Image

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

or maybe user wants 1 http spans for a http request but not all the sub spans here like .proxy .dns etc. Image

regex would work nice

thinkocapo avatar Dec 05 '24 15:12 thinkocapo

See also https://github.com/getsentry/sentry-python/issues/1895 for a Celery example

sentrivana avatar Dec 11 '24 10:12 sentrivana

checking in to see if there is an update on this?

osheaoshea avatar Jun 02 '25 12:06 osheaoshea

No update @osheaoshea, sorry!

sentrivana avatar Jun 03 '25 11:06 sentrivana

This would be very useful! hope we can implement this.

JoshFerge avatar Oct 29 '25 07:10 JoshFerge