Skip to content

Commit

Permalink
fix: replace depreciated sentry integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexJSully committed Jan 25, 2024
1 parent 9987339 commit 5018c51
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions sentry.client.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file configures the initialization of Sentry on the client.
// The config you add here will be used whenever a users loads a page in their browser.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
import { CaptureConsole } from '@sentry/integrations';
import { captureConsoleIntegration } from '@sentry/integrations';
import * as Sentry from '@sentry/nextjs';

Sentry.init({
Expand All @@ -21,12 +21,9 @@ Sentry.init({

// You can remove this option if you're not planning to use the Sentry Session Replay feature:
integrations: [
new CaptureConsole({
captureConsoleIntegration({
levels: ['error'],
}),
new Sentry.Replay({
// Additional Replay configuration goes in here, for example:
maskAllText: true,
}),
Sentry.replayIntegration(),
],
});

0 comments on commit 5018c51

Please sign in to comment.