Skip to content

Commit 3a50682

Browse files
committed
docs
1 parent d3515b9 commit 3a50682

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sentry/static/sentry/app/bootstrap.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@ Sentry.init({
8282
tracesSampleRate,
8383
async beforeSend(event) {
8484
if (event.type === 'transaction') {
85-
// for JavaScript transactions, set the transaction name based on the current window.location
86-
// object against the application react-router routes
85+
// For JavaScript transactions, translate the transaction name if it exists and doesn't start with /
86+
// using the app's react-router routes. If the transaction name doesn't exist, use the window.location.pathname
87+
// as the fallback.
8788

8889
let prevTransactionName = event.transaction;
8990

0 commit comments

Comments
 (0)