Remove node profiling integration from Sentry client
Removed node profiling integration and related settings.
This commit is contained in:
parent
7839c2575c
commit
9eb68484ff
|
|
@ -1,13 +1,11 @@
|
|||
import * as Sentry from '@sentry/nextjs';
|
||||
import { initializeSentryBasic } from '@gitroom/react/sentry/initialize.sentry.next.basic';
|
||||
import { nodeProfilingIntegration } from '@sentry/profiling-node';
|
||||
|
||||
export const initializeSentryClient = (environment: string, dsn: string) =>
|
||||
initializeSentryBasic(environment, dsn, {
|
||||
integrations: [
|
||||
// Add default integrations back
|
||||
Sentry.browserTracingIntegration(),
|
||||
nodeProfilingIntegration(),
|
||||
Sentry.replayIntegration({
|
||||
maskAllText: true,
|
||||
maskAllInputs: true,
|
||||
|
|
@ -19,9 +17,4 @@ export const initializeSentryClient = (environment: string, dsn: string) =>
|
|||
],
|
||||
replaysSessionSampleRate: environment === 'development' ? 1.0 : 0.5,
|
||||
replaysOnErrorSampleRate: 1.0,
|
||||
|
||||
|
||||
// Profiling
|
||||
profileSessionSampleRate: process.env.NODE_ENV === 'development' ? 1.0 : 0.15,
|
||||
profileLifecycle: 'trace',
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue