Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions src/wizard/javascript/replay-onboarding/angular/2.configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,24 @@ type: language

#### Configure

Add the following to your SDK config. There are several privacy and sampling options available, all of which can be set via the `integrations` constructor. Learn more about configuring Session Replay in our Github [Readme](https://github.com/getsentry/sentry-replay/blob/main/README.md).
Add the following to your SDK config. There are several privacy and sampling options available, all of which can be set via the `integrations` constructor. Learn more about configuring Session Replay by reading the [configuration docs](https://docs.sentry.io/platforms/javascript/guides/angular/session-replay/custom-instrumentation/).

```javascript
import * as Sentry from "@sentry/angular";
import { Replay } from "@sentry/replay";

Sentry.init({
dsn: "https://[email protected]/0",
integrations: [
new Replay({
// Capture 10% of all sessions
sessionSampleRate: 0.1,

// Of the remaining 90% of sessions, if an error happens start capturing
errorSampleRate: 1.0,
})
// 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 Replay()
],
});
```
18 changes: 10 additions & 8 deletions src/wizard/javascript/replay-onboarding/ember/2.configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,24 @@ type: language

#### Configure

Add the following to your SDK config. There are several privacy and sampling options available, all of which can be set via the `integrations` constructor. Learn more about configuring Session Replay in our Github [Readme](https://github.com/getsentry/sentry-replay/blob/main/README.md).
Add the following to your SDK config. There are several privacy and sampling options available, all of which can be set via the `integrations` constructor. Learn more about configuring Session Replay by reading the [configuration docs](https://docs.sentry.io/platforms/javascript/guides/ember/session-replay/custom-instrumentation/).

```javascript
import * as Sentry from "@sentry/ember";
import { Replay } from "@sentry/replay";

Sentry.init({
dsn: "https://[email protected]/0",
integrations: [
new Replay({
// Capture 10% of all sessions
sessionSampleRate: 0.1,

// Of the remaining 90% of sessions, if an error happens start capturing
errorSampleRate: 1.0,
})
// 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 Replay()
],
});
```
18 changes: 10 additions & 8 deletions src/wizard/javascript/replay-onboarding/gatsby/2.configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type: language

#### Configure

Add the following to your SDK config. There are several privacy and sampling options available, all of which can be set via the `integrations` constructor. Learn more about configuring Session Replay in our Github [Readme](https://github.com/getsentry/sentry-replay/blob/main/README.md).
Add the following to your SDK config. There are several privacy and sampling options available, all of which can be set via the `integrations` constructor. Learn more about configuring Session Replay by reading the [configuration docs](https://docs.sentry.io/platforms/javascript/guides/gatsby/session-replay/custom-instrumentation/).

Include the `@sentry/gatsby` plugin:

Expand All @@ -29,14 +29,16 @@ import { Replay } from "@sentry/replay";

Sentry.init({
dsn: "https://[email protected]/0",
integrations: [
new Replay({
// Capture 10% of all sessions
sessionSampleRate: 0.1,

// Of the remaining 90% of sessions, if an error happens start capturing
errorSampleRate: 1.0,
})
// 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 Replay()
],
});
```
Expand Down
18 changes: 10 additions & 8 deletions src/wizard/javascript/replay-onboarding/nextjs/2.configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,24 @@ type: language

#### Configure

Add the following to your Client SDK config. There are several privacy and sampling options available, all of which can be set via the `integrations` constructor. Learn more about configuring Session Replay in our Github [Readme](https://github.com/getsentry/sentry-replay/blob/main/README.md).
Add the following to your SDK config. There are several privacy and sampling options available, all of which can be set via the `integrations` constructor. Learn more about configuring Session Replay by reading the [configuration docs](https://docs.sentry.io/platforms/javascript/guides/nextjs/session-replay/custom-instrumentation/).

```javascript {filename:sentry.client.config.js}
import * as Sentry from "@sentry/nextjs";
import { Replay } from "@sentry/replay";

Sentry.init({
dsn: "https://[email protected]/0",
integrations: [
new Replay({
// Capture 10% of all sessions
sessionSampleRate: 0.1,

// Of the remaining 90% of sessions, if an error happens start capturing
errorSampleRate: 1.0,
})
// 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 Replay()
],
});
```
Expand Down
18 changes: 10 additions & 8 deletions src/wizard/javascript/replay-onboarding/react/2.configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,24 @@ type: language

#### Configure

Add the following to your SDK config. There are several privacy and sampling options available, all of which can be set via the `integrations` constructor. Learn more about configuring Session Replay in our Github [Readme](https://github.com/getsentry/sentry-replay/blob/main/README.md).
Add the following to your SDK config. There are several privacy and sampling options available, all of which can be set via the `integrations` constructor. Learn more about configuring Session Replay by reading the [configuration docs](https://docs.sentry.io/platforms/javascript/guides/react/session-replay/custom-instrumentation/).

```javascript
import * as Sentry from "@sentry/react";
import { Replay } from "@sentry/replay";

Sentry.init({
dsn: "https://[email protected]/0",
integrations: [
new Replay({
// Capture 10% of all sessions
sessionSampleRate: 0.1,

// Of the remaining 90% of sessions, if an error happens start capturing
errorSampleRate: 1.0,
})
// 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 Replay()
],
});
```
18 changes: 10 additions & 8 deletions src/wizard/javascript/replay-onboarding/remix/2.configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,24 @@ type: language

#### Configure

Add the following to your SDK config. There are several privacy and sampling options available, all of which can be set via the `integrations` constructor. Learn more about configuring Session Replay in our Github [Readme](https://github.com/getsentry/sentry-replay/blob/main/README.md).
Add the following to your SDK config. There are several privacy and sampling options available, all of which can be set via the `integrations` constructor. Learn more about configuring Session Replay by reading the [configuration docs](https://docs.sentry.io/platforms/javascript/guides/remix/session-replay/custom-instrumentation/).

```javascript {filename: entry.client.tsx}
import * as Sentry from "@sentry/remix";
import { Replay } from "@sentry/replay";

Sentry.init({
dsn: "https://[email protected]/0",
integrations: [
new Replay({
// Capture 10% of all sessions
sessionSampleRate: 0.1,

// Of the remaining 90% of sessions, if an error happens start capturing
errorSampleRate: 1.0,
})
// 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 Replay()
],
});
```
Expand Down
18 changes: 10 additions & 8 deletions src/wizard/javascript/replay-onboarding/svelte/2.configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type: language

#### Configure

Add the following to your SDK config. There are several privacy and sampling options available, all of which can be set via the `integrations` constructor. Learn more about configuring Session Replay in our Github [Readme](https://github.com/getsentry/sentry-replay/blob/main/README.md).
Add the following to your SDK config. There are several privacy and sampling options available, all of which can be set via the `integrations` constructor. Learn more about configuring Session Replay by reading the [configuration docs](https://docs.sentry.io/platforms/javascript/guides/svelte/session-replay/custom-instrumentation/).

```javascript
import "./app.css";
Expand All @@ -18,14 +18,16 @@ import { Replay } from "@sentry/replay";

Sentry.init({
dsn: "https://[email protected]/0",
integrations: [
new Replay({
// Capture 10% of all sessions
sessionSampleRate: 0.1,

// Of the remaining 90% of sessions, if an error happens start capturing
errorSampleRate: 1.0,
})
// 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 Replay()
],
});

Expand Down
34 changes: 19 additions & 15 deletions src/wizard/javascript/replay-onboarding/vue/2.configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type: language

#### Configure

Add the following to your SDK config. There are several privacy and sampling options available, all of which can be set via the `integrations` constructor. Learn more about configuring Session Replay in our Github [Readme](https://github.com/getsentry/sentry-replay/blob/main/README.md).
Add the following to your SDK config. There are several privacy and sampling options available, all of which can be set via the `integrations` constructor. Learn more about configuring Session Replay by reading the [configuration docs](https://docs.sentry.io/platforms/javascript/guides/vue/session-replay/custom-instrumentation/).

#### Vue 2

Expand All @@ -26,14 +26,16 @@ const router = new Router({
Sentry.init({
Vue,
dsn: "https://[email protected]/0",
integrations: [
new Replay({
// Capture 10% of all sessions
sessionSampleRate: 0.1,

// Of the remaining 90% of sessions, if an error happens start capturing
errorSampleRate: 1.0,
})
// 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 Replay()
],
});

Expand Down Expand Up @@ -63,14 +65,16 @@ const router = createRouter({
Sentry.init({
app,
dsn: "https://[email protected]/0",
integrations: [
new Replay({
// Capture 10% of all sessions
sessionSampleRate: 0.1,

// Of the remaining 90% of sessions, if an error happens start capturing
errorSampleRate: 1.0,
})
// 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 Replay()
],
});

Expand Down