File size: 819 Bytes
f2e9a59 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | import * as Sentry from '@sentry/nextjs';
import { initializeSentryBasic } from '@gitroom/react/sentry/initialize.sentry.next.basic';
export const initializeSentryClient = (environment: string, dsn: string) =>
initializeSentryBasic(environment, dsn, {
integrations: [
// Add default integrations back
Sentry.browserTracingIntegration(),
Sentry.browserProfilingIntegration(),
Sentry.replayIntegration({
maskAllText: false,
maskAllInputs: true,
}),
Sentry.feedbackIntegration({
// Disable the injection of the default widget
autoInject: false,
}),
Sentry.replayCanvasIntegration(),
],
replaysSessionSampleRate: 1.0,
replaysOnErrorSampleRate: 1.0,
profilesSampleRate: environment === 'development' ? 1.0 : 0.75,
});
|