Skip to content

Commit 3ed1965

Browse files
authored
fix(sdk): Disable browserProfilingIntegration in development (#103249)
if you’re profiling Sentry’s UI in Chrome, remember to turn off browserProfilingIntegration in the SDK configuration, or Chrome will incorrectly attribute regular rendering work as “Profiling Overhead” @gggritso
1 parent 26c9a2a commit 3ed1965

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

static/app/bootstrap/initializeSdk.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
import type {Event} from '@sentry/core';
99
import * as Sentry from '@sentry/react';
1010

11-
import {SENTRY_RELEASE_VERSION, SPA_DSN} from 'sentry/constants';
11+
import {NODE_ENV, SENTRY_RELEASE_VERSION, SPA_DSN} from 'sentry/constants';
1212
import type {Config} from 'sentry/types/system';
1313
import {addExtraMeasurements, addUIElementTag} from 'sentry/utils/performanceForSentry';
1414
import normalizeUrl from 'sentry/utils/url/normalizeUrl';
@@ -69,7 +69,7 @@ function getSentryIntegrations() {
6969
},
7070
linkPreviousTrace: 'session-storage',
7171
}),
72-
Sentry.browserProfilingIntegration(),
72+
...(NODE_ENV === 'production' ? [Sentry.browserProfilingIntegration()] : []),
7373
Sentry.thirdPartyErrorFilterIntegration({
7474
filterKeys: ['sentry-spa'],
7575
behaviour: 'apply-tag-if-contains-third-party-frames',

0 commit comments

Comments
 (0)