getsentry / getsentry/sentry-javascript

Ability to strip basename in trace url (without reactRouterV6BrowserTracingIntegration)

Open
#13,468 2 comments 0 reactions 0 assignees View on GitHub
Improvement React
Dominant language
TypeScript
Stars
8.7k
Forks
1.8k
Avg merge
1d 17h
Merged PRs (30d)
515

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.