Skip to content

Ability to strip basename in trace url (without reactRouterV6BrowserTracingIntegration) #13468

@frankkluijtmans

Description

@frankkluijtmans

Problem Statement

Currently, when integrating the reactRouterV6BrowserTracingIntegration in a react app it allows you to strip out the basename on your routes so they can be neatly grouped by routename. What I'm missing though is a way to do the same outside of the router context. In my example, one of the url's that I'm receiving is an auth callback and will have a different base URL based on the user account. This results in a lot of different trace groups for essentially the same app URL. I'd like it if we can also strip out this base URL outside of the router context. I'm creating this issue since there doesn't seem to be such an option with the current Sentry integrations.

Solution Brainstorm

An option, to strip out your app's basename regardless of router context.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions