Skip to content

Commit

Permalink
Remove old constructor keywords in JS integration options that can ca…
Browse files Browse the repository at this point in the history
…use browser errors (#11801)

Co-authored-by: Alex Krawiec <[email protected]>
  • Loading branch information
coolguyzone and Alex Krawiec authored Nov 12, 2024
1 parent 6559e11 commit 2cf5ba6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import * as Sentry from "@sentry/electron/main";

Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [new Sentry.browserWindowSessionIntegration()],
integrations: [Sentry.browserWindowSessionIntegration()],
});
```

Expand All @@ -33,7 +33,7 @@ import * as Sentry from "@sentry/electron/main";
Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [
new Sentry.browserWindowSessionIntegration({
Sentry.browserWindowSessionIntegration({
backgroundTimeoutSeconds: 120,
}),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
],
});
```
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Sentry captures data by using a platform-specific SDK that you add to your appli

Sentry.init({
dsn: "<your_DSN_key>",
integrations: [new Sentry.browserTracingIntegration(), Sentry.replayIntegration()],
integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()],

// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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%
Expand Down

0 comments on commit 2cf5ba6

Please sign in to comment.