File tree Expand file tree Collapse file tree 3 files changed +628
-289
lines changed Expand file tree Collapse file tree 3 files changed +628
-289
lines changed Original file line number Diff line number Diff line change 46
46
"@guardian/support-dotcom-components" : " 7.7.0" ,
47
47
"@guardian/tsconfig" : " 0.2.0" ,
48
48
"@playwright/test" : " 1.52.0" ,
49
- "@sentry/browser" : " 7.75.1" ,
50
- "@sentry/integrations" : " 7.75.1" ,
49
+ "@sentry/browser" : " 10.3.0" ,
51
50
"@storybook/addon-essentials" : " 8.6.14" ,
52
51
"@storybook/addon-interactions" : " 8.6.14" ,
53
52
"@storybook/addon-webpack5-compiler-swc" : " 3.0.0" ,
Original file line number Diff line number Diff line change 1
1
import * as Sentry from '@sentry/browser' ;
2
2
import type { BrowserOptions } from '@sentry/browser' ;
3
- import { CaptureConsole } from '@sentry/integrations' ;
4
3
import { BUILD_VARIANT , dcrJavascriptBundle } from '../../../webpack/bundles' ;
5
4
import type { ReportError } from '../../types/sentry' ;
6
5
@@ -44,7 +43,7 @@ Sentry.init({
44
43
allowUrls,
45
44
dsn : dcrSentryDsn ,
46
45
environment : stage || 'DEV' ,
47
- integrations : [ new CaptureConsole ( { levels : [ 'error' ] } ) ] ,
46
+ integrations : [ Sentry . captureConsoleIntegration ( { levels : [ 'error' ] } ) ] ,
48
47
maxBreadcrumbs : 50 ,
49
48
// sampleRate: // We use Math.random in init.ts to sample errors
50
49
} ) ;
You can’t perform that action at this time.
0 commit comments