diff --git a/docs/platforms/javascript/guides/electron/configuration/integrations/browserwindowsession.mdx b/docs/platforms/javascript/guides/electron/configuration/integrations/browserwindowsession.mdx index 1ca17bac70df4..0256b5ea97036 100644 --- a/docs/platforms/javascript/guides/electron/configuration/integrations/browserwindowsession.mdx +++ b/docs/platforms/javascript/guides/electron/configuration/integrations/browserwindowsession.mdx @@ -20,7 +20,7 @@ import * as Sentry from "@sentry/electron/main"; Sentry.init({ dsn: "___PUBLIC_DSN___", - integrations: [new Sentry.browserWindowSessionIntegration()], + integrations: [Sentry.browserWindowSessionIntegration()], }); ``` @@ -33,7 +33,7 @@ import * as Sentry from "@sentry/electron/main"; Sentry.init({ dsn: "___PUBLIC_DSN___", integrations: [ - new Sentry.browserWindowSessionIntegration({ + Sentry.browserWindowSessionIntegration({ backgroundTimeoutSeconds: 120, }), ], diff --git a/docs/platforms/javascript/guides/electron/configuration/integrations/mainprocesssession.mdx b/docs/platforms/javascript/guides/electron/configuration/integrations/mainprocesssession.mdx index e7ddfdffe3d6a..9e38a68cd5d89 100644 --- a/docs/platforms/javascript/guides/electron/configuration/integrations/mainprocesssession.mdx +++ b/docs/platforms/javascript/guides/electron/configuration/integrations/mainprocesssession.mdx @@ -32,7 +32,7 @@ import * as Sentry from "@sentry/electron/main"; Sentry.init({ dsn: "___PUBLIC_DSN___", integrations: [ - new Sentry.mainProcessSessionIntegration({ sendOnCreate: true }), + Sentry.mainProcessSessionIntegration({ sendOnCreate: true }), ], }); ``` diff --git a/docs/product/sentry-basics/integrate-frontend/initialize-sentry-sdk.mdx b/docs/product/sentry-basics/integrate-frontend/initialize-sentry-sdk.mdx index 580fa92672261..cb8ee2a8c0bac 100644 --- a/docs/product/sentry-basics/integrate-frontend/initialize-sentry-sdk.mdx +++ b/docs/product/sentry-basics/integrate-frontend/initialize-sentry-sdk.mdx @@ -54,7 +54,7 @@ Sentry captures data by using a platform-specific SDK that you add to your appli Sentry.init({ dsn: "", - integrations: [new Sentry.browserTracingIntegration(), Sentry.replayIntegration()], + integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()], // Set tracesSampleRate to 1.0 to capture 100% // of transactions for performance monitoring. diff --git a/platform-includes/performance/configure-sample-rate/javascript.electron.mdx b/platform-includes/performance/configure-sample-rate/javascript.electron.mdx index 5124b48bab487..99babe6dc15a1 100644 --- a/platform-includes/performance/configure-sample-rate/javascript.electron.mdx +++ b/platform-includes/performance/configure-sample-rate/javascript.electron.mdx @@ -10,7 +10,7 @@ Sentry.init({ // This enables automatic instrumentation (highly recommended), but is not // necessary for purely manual usage - integrations: [new Sentry.browserTracingIntegration()], + integrations: [Sentry.browserTracingIntegration()], // We recommend adjusting this value in production, or using tracesSampler // for finer control diff --git a/platform-includes/performance/enable-automatic-instrumentation/javascript.electron.mdx b/platform-includes/performance/enable-automatic-instrumentation/javascript.electron.mdx index 292f865ebe4ac..9864240c40242 100644 --- a/platform-includes/performance/enable-automatic-instrumentation/javascript.electron.mdx +++ b/platform-includes/performance/enable-automatic-instrumentation/javascript.electron.mdx @@ -10,7 +10,7 @@ import * as Sentry from "@sentry/electron/renderer"; Sentry.init({ dsn: "___PUBLIC_DSN___", - integrations: [new Sentry.browserTracingIntegration()], + integrations: [Sentry.browserTracingIntegration()], // We recommend adjusting this value in production, or using tracesSampler // for finer control diff --git a/platform-includes/profiling/automatic-instrumentation-setup/javascript.electron.mdx b/platform-includes/profiling/automatic-instrumentation-setup/javascript.electron.mdx index 0e7589be51bc2..6cfcbf31f34d3 100644 --- a/platform-includes/profiling/automatic-instrumentation-setup/javascript.electron.mdx +++ b/platform-includes/profiling/automatic-instrumentation-setup/javascript.electron.mdx @@ -7,8 +7,8 @@ Sentry.init({ dsn: "___PUBLIC_DSN___", integrations: [ // Add browser profiling integration to the list of integrations - new Sentry.browserTracingIntegration(), - new Sentry.browserProfilingIntegration(), + Sentry.browserTracingIntegration(), + Sentry.browserProfilingIntegration(), ], // Set tracesSampleRate to 1.0 to capture 100%