Skip to content

Commit 62b19e5

Browse files
authored
fix: Don't start pageload transaction (#14115)
1 parent 4113333 commit 62b19e5

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/sentry/static/sentry/app/bootstrap.jsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ Sentry.configureScope(scope => {
4444
if (window.__SENTRY__VERSION) {
4545
scope.setTag('sentry_version', window.__SENTRY__VERSION);
4646
}
47-
scope.setSpan(
48-
Sentry.getCurrentHub().startSpan({
49-
op: 'pageload',
50-
sampled: true,
51-
})
52-
);
5347
});
5448

5549
// Used for operational metrics to determine that the application js
@@ -78,6 +72,14 @@ if (
7872
(config.urlPrefix &&
7973
(config.urlPrefix.includes('localhost') || config.urlPrefix.includes('127.0.0.1'))))
8074
) {
75+
Sentry.configureScope(scope => {
76+
scope.setSpan(
77+
Sentry.getCurrentHub().startSpan({
78+
op: 'pageload',
79+
sampled: true,
80+
})
81+
);
82+
});
8183
startApm();
8284
}
8385
// -----------------------------------------------------------------

0 commit comments

Comments
 (0)