Skip to content

Commit 8d66a33

Browse files
marjisoundJamieB-guDanielCliftonGuardianSiAdcockjamesmockett
authored
Merge pull request #14366 from guardian/dependabot/npm_and_yarn/sentry/browser-10.3.0
Bump @sentry/browser from 7.75.1 to 10.3.0 Co-authored-by: Jamie B <[email protected]> Co-authored-by: DanielCliftonGuardian <[email protected]> Co-authored-by: Simon Adcock <[email protected]> Co-authored-by: James Mockett <[email protected]>
2 parents 052a7a8 + 51db443 commit 8d66a33

File tree

3 files changed

+628
-289
lines changed

3 files changed

+628
-289
lines changed

dotcom-rendering/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@
4646
"@guardian/support-dotcom-components": "7.7.0",
4747
"@guardian/tsconfig": "0.2.0",
4848
"@playwright/test": "1.52.0",
49-
"@sentry/browser": "7.75.1",
50-
"@sentry/integrations": "7.75.1",
49+
"@sentry/browser": "10.3.0",
5150
"@storybook/addon-essentials": "8.6.14",
5251
"@storybook/addon-interactions": "8.6.14",
5352
"@storybook/addon-webpack5-compiler-swc": "3.0.0",

dotcom-rendering/src/client/sentryLoader/sentry.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as Sentry from '@sentry/browser';
22
import type { BrowserOptions } from '@sentry/browser';
3-
import { CaptureConsole } from '@sentry/integrations';
43
import { BUILD_VARIANT, dcrJavascriptBundle } from '../../../webpack/bundles';
54
import type { ReportError } from '../../types/sentry';
65

@@ -44,7 +43,7 @@ Sentry.init({
4443
allowUrls,
4544
dsn: dcrSentryDsn,
4645
environment: stage || 'DEV',
47-
integrations: [new CaptureConsole({ levels: ['error'] })],
46+
integrations: [Sentry.captureConsoleIntegration({ levels: ['error'] })],
4847
maxBreadcrumbs: 50,
4948
// sampleRate: // We use Math.random in init.ts to sample errors
5049
});

0 commit comments

Comments
 (0)