Skip to content

Span Filter Option ignoreSpans #3859

Open
@thinkocapo

Description

@thinkocapo

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions