getsentry / getsentry/sentry-javascript

Ability to strip basename in trace url (without reactRouterV6BrowserTracingIntegration)

オープン
#13,468 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
Improvement React
主要言語
TypeScript
スター
8.7k
フォーク
1.8k
平均マージ
1日 17時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。