-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91171b7
commit ac2bca0
Showing
11 changed files
with
370 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
```javascript | ||
import * as Sentry from "@sentry/angular-ivy"; | ||
|
||
Sentry.init({ | ||
dsn: "___PUBLIC_DSN___", | ||
|
||
// This sets the sample rate to be 10%. You may want this to be 100% while | ||
// in development and sample at a lower rate in production | ||
replaysSessionSampleRate: 0.1, | ||
|
||
// If the entire session is not sampled, use the below sample rate to sample | ||
// sessions when an error occurs. | ||
replaysOnErrorSampleRate: 1.0, | ||
|
||
integrations: [ | ||
new Sentry.Replay({ | ||
// Additional SDK configuration goes in here, for example: | ||
maskAllText: true, | ||
blockAllMedia: true, | ||
}), | ||
], | ||
}); | ||
``` | ||
|
||
With the settings above, session replays with errors are always captured. | ||
You can verify that with the following: | ||
|
||
```javascript | ||
myUndefinedFunction(); | ||
``` | ||
|
||
### Lazy-loading Replay | ||
|
||
Once you've added the integration, Replay will start automatically. If you don't want to start it immediately (lazy-load it), you can use `addIntegration`: | ||
|
||
```js | ||
Sentry.init({ | ||
// Note, Replay is NOT instantiated below: | ||
integrations: [], | ||
}); | ||
|
||
// Sometime later | ||
const { getCurrentHub, Replay } = await import("@sentry/angular-ivy"); | ||
getCurrentHub().getClient().addIntegration(new Replay()); | ||
``` |
8 changes: 0 additions & 8 deletions
8
src/platform-includes/session-replay/setup/javascript.electron.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
```javascript | ||
import * as Sentry from "@sentry/ember"; | ||
|
||
Sentry.init({ | ||
dsn: "___PUBLIC_DSN___", | ||
|
||
// This sets the sample rate to be 10%. You may want this to be 100% while | ||
// in development and sample at a lower rate in production | ||
replaysSessionSampleRate: 0.1, | ||
|
||
// If the entire session is not sampled, use the below sample rate to sample | ||
// sessions when an error occurs. | ||
replaysOnErrorSampleRate: 1.0, | ||
|
||
integrations: [ | ||
new Sentry.Replay({ | ||
// Additional SDK configuration goes in here, for example: | ||
maskAllText: true, | ||
blockAllMedia: true, | ||
}), | ||
], | ||
}); | ||
``` | ||
|
||
With the settings above, session replays with errors are always captured. | ||
You can verify that with the following: | ||
|
||
```javascript | ||
myUndefinedFunction(); | ||
``` | ||
|
||
### Lazy-loading Replay | ||
|
||
Once you've added the integration, Replay will start automatically. If you don't want to start it immediately (lazy-load it), you can use `addIntegration`: | ||
|
||
```js | ||
Sentry.init({ | ||
// Note, Replay is NOT instantiated below: | ||
integrations: [], | ||
}); | ||
|
||
// Sometime later | ||
const { getCurrentHub, Replay } = await import("@sentry/ember"); | ||
getCurrentHub().getClient().addIntegration(new Replay()); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
```javascript | ||
On your client-side NextJS app, add: | ||
|
||
import * as Sentry from "@sentry/nextjs"; | ||
|
||
Sentry.init({ | ||
dsn: "___PUBLIC_DSN___", | ||
|
||
// This sets the sample rate to be 10%. You may want this to be 100% while | ||
// in development and sample at a lower rate in production | ||
replaysSessionSampleRate: 0.1, | ||
|
||
// If the entire session is not sampled, use the below sample rate to sample | ||
// sessions when an error occurs. | ||
replaysOnErrorSampleRate: 1.0, | ||
|
||
integrations: [ | ||
new Sentry.Replay({ | ||
// Additional SDK configuration goes in here, for example: | ||
maskAllText: true, | ||
blockAllMedia: true, | ||
}), | ||
], | ||
}); | ||
``` | ||
|
||
With the settings above, session replays with errors are always captured. | ||
You can verify that with the following: | ||
|
||
```javascript | ||
myUndefinedFunction(); | ||
``` | ||
|
||
### Lazy-loading Replay | ||
|
||
Once you've added the integration, Replay will start automatically. If you don't want to start it immediately (lazy-load it), you can use `addIntegration`: | ||
|
||
```js | ||
Sentry.init({ | ||
// Note, Replay is NOT instantiated below: | ||
integrations: [], | ||
}); | ||
|
||
// Sometime later | ||
const { getCurrentHub, Replay } = await import("@sentry/nextjs"); | ||
getCurrentHub().getClient().addIntegration(new Replay()); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
```javascript | ||
import * as Sentry from "@sentry/react"; | ||
|
||
Sentry.init({ | ||
dsn: "___PUBLIC_DSN___", | ||
|
||
// This sets the sample rate to be 10%. You may want this to be 100% while | ||
// in development and sample at a lower rate in production | ||
replaysSessionSampleRate: 0.1, | ||
|
||
// If the entire session is not sampled, use the below sample rate to sample | ||
// sessions when an error occurs. | ||
replaysOnErrorSampleRate: 1.0, | ||
|
||
integrations: [ | ||
new Sentry.Replay({ | ||
// Additional SDK configuration goes in here, for example: | ||
maskAllText: true, | ||
blockAllMedia: true, | ||
}), | ||
], | ||
}); | ||
``` | ||
|
||
With the settings above, session replays with errors are always captured. | ||
You can verify that with the following: | ||
|
||
```javascript | ||
myUndefinedFunction(); | ||
``` | ||
|
||
### Lazy-loading Replay | ||
|
||
Once you've added the integration, Replay will start automatically. If you don't want to start it immediately (lazy-load it), you can use `addIntegration`: | ||
|
||
```js | ||
Sentry.init({ | ||
// Note, Replay is NOT instantiated below: | ||
integrations: [], | ||
}); | ||
|
||
// Sometime later | ||
const { getCurrentHub, Replay } = await import("@sentry/react"); | ||
getCurrentHub().getClient().addIntegration(new Replay()); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
On your client-side Remix app, add: | ||
|
||
```javascript | ||
import * as Sentry from "@sentry/remix"; | ||
|
||
Sentry.init({ | ||
dsn: "___PUBLIC_DSN___", | ||
|
||
// This sets the sample rate to be 10%. You may want this to be 100% while | ||
// in development and sample at a lower rate in production | ||
replaysSessionSampleRate: 0.1, | ||
|
||
// If the entire session is not sampled, use the below sample rate to sample | ||
// sessions when an error occurs. | ||
replaysOnErrorSampleRate: 1.0, | ||
|
||
integrations: [ | ||
new Sentry.Replay({ | ||
// Additional SDK configuration goes in here, for example: | ||
maskAllText: true, | ||
blockAllMedia: true, | ||
}), | ||
], | ||
}); | ||
``` | ||
|
||
With the settings above, session replays with errors are always captured. | ||
You can verify that with the following: | ||
|
||
```javascript | ||
myUndefinedFunction(); | ||
``` | ||
|
||
### Lazy-loading Replay | ||
|
||
Once you've added the integration, Replay will start automatically. If you don't want to start it immediately (lazy-load it), you can use `addIntegration`: | ||
|
||
```js | ||
Sentry.init({ | ||
// Note, Replay is NOT instantiated below: | ||
integrations: [], | ||
}); | ||
|
||
// Sometime later | ||
const { getCurrentHub, Replay } = await import("@sentry/remix"); | ||
getCurrentHub().getClient().addIntegration(new Replay()); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
```javascript | ||
import * as Sentry from "@sentry/svelte"; | ||
|
||
Sentry.init({ | ||
dsn: "___PUBLIC_DSN___", | ||
|
||
// This sets the sample rate to be 10%. You may want this to be 100% while | ||
// in development and sample at a lower rate in production | ||
replaysSessionSampleRate: 0.1, | ||
|
||
// If the entire session is not sampled, use the below sample rate to sample | ||
// sessions when an error occurs. | ||
replaysOnErrorSampleRate: 1.0, | ||
|
||
integrations: [ | ||
new Sentry.Replay({ | ||
// Additional SDK configuration goes in here, for example: | ||
maskAllText: true, | ||
blockAllMedia: true, | ||
}), | ||
], | ||
}); | ||
``` | ||
|
||
With the settings above, session replays with errors are always captured. | ||
You can verify that with the following: | ||
|
||
```javascript | ||
myUndefinedFunction(); | ||
``` | ||
|
||
### Lazy-loading Replay | ||
|
||
Once you've added the integration, Replay will start automatically. If you don't want to start it immediately (lazy-load it), you can use `addIntegration`: | ||
|
||
```js | ||
Sentry.init({ | ||
// Note, Replay is NOT instantiated below: | ||
integrations: [], | ||
}); | ||
|
||
// Sometime later | ||
const { getCurrentHub, Replay } = await import("@sentry/svelte"); | ||
getCurrentHub().getClient().addIntegration(new Replay()); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
On your client-side SvelteKit app, add: | ||
|
||
```javascript | ||
import * as Sentry from "@sentry/sveltekit"; | ||
|
||
Sentry.init({ | ||
dsn: "___PUBLIC_DSN___", | ||
|
||
// This sets the sample rate to be 10%. You may want this to be 100% while | ||
// in development and sample at a lower rate in production | ||
replaysSessionSampleRate: 0.1, | ||
|
||
// If the entire session is not sampled, use the below sample rate to sample | ||
// sessions when an error occurs. | ||
replaysOnErrorSampleRate: 1.0, | ||
|
||
integrations: [ | ||
new Sentry.Replay({ | ||
// Additional SDK configuration goes in here, for example: | ||
maskAllText: true, | ||
blockAllMedia: true, | ||
}), | ||
], | ||
}); | ||
``` | ||
|
||
With the settings above, session replays with errors are always captured. | ||
You can verify that with the following: | ||
|
||
```javascript | ||
myUndefinedFunction(); | ||
``` | ||
|
||
### Lazy-loading Replay | ||
|
||
Once you've added the integration, Replay will start automatically. If you don't want to start it immediately (lazy-load it), you can use `addIntegration`: | ||
|
||
```js | ||
Sentry.init({ | ||
// Note, Replay is NOT instantiated below: | ||
integrations: [], | ||
}); | ||
|
||
// Sometime later | ||
const { getCurrentHub, Replay } = await import("@sentry/sveltekit"); | ||
getCurrentHub().getClient().addIntegration(new Replay()); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
```javascript | ||
import * as Sentry from "@sentry/vue"; | ||
|
||
Sentry.init({ | ||
dsn: "___PUBLIC_DSN___", | ||
|
||
// This sets the sample rate to be 10%. You may want this to be 100% while | ||
// in development and sample at a lower rate in production | ||
replaysSessionSampleRate: 0.1, | ||
|
||
// If the entire session is not sampled, use the below sample rate to sample | ||
// sessions when an error occurs. | ||
replaysOnErrorSampleRate: 1.0, | ||
|
||
integrations: [ | ||
new Sentry.Replay({ | ||
// Additional SDK configuration goes in here, for example: | ||
maskAllText: true, | ||
blockAllMedia: true, | ||
}), | ||
], | ||
}); | ||
``` | ||
|
||
With the settings above, session replays with errors are always captured. | ||
You can verify that with the following: | ||
|
||
```javascript | ||
myUndefinedFunction(); | ||
``` | ||
|
||
### Lazy-loading Replay | ||
|
||
Once you've added the integration, Replay will start automatically. If you don't want to start it immediately (lazy-load it), you can use `addIntegration`: | ||
|
||
```js | ||
Sentry.init({ | ||
// Note, Replay is NOT instantiated below: | ||
integrations: [], | ||
}); | ||
|
||
// Sometime later | ||
const { getCurrentHub, Replay } = await import("@sentry/vue"); | ||
getCurrentHub().getClient().addIntegration(new Replay()); | ||
``` |
Oops, something went wrong.