Skip to content

Commit 51db443

Browse files
marjisoundJamieB-guDanielCliftonGuardianSiAdcockjamesmockett
committed
Update @sentry/browser dependency
@sentry/integrations package has been deprecated and CaptureConsole is now available from Sentry/browser 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]>
1 parent f634f64 commit 51db443

File tree

3 files changed

+1
-52
lines changed

3 files changed

+1
-52
lines changed

dotcom-rendering/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"@guardian/tsconfig": "0.2.0",
4848
"@playwright/test": "1.52.0",
4949
"@sentry/browser": "10.3.0",
50-
"@sentry/integrations": "7.75.1",
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
});

pnpm-lock.yaml

Lines changed: 0 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)