getsentry / getsentry/sentry-javascript

Ability to strip basename in trace url (without reactRouterV6BrowserTracingIntegration)

未关闭
#13,468 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Improvement React
主要语言
TypeScript
星标
8.7k
派生
1.8k
平均合并
1 天 17 小时
30 天内合并 PR
515

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。