Skip to content

Commit d192b24

Browse files
authored
ref(replay): Change Replay integration from class-based to functional (#8935)
Changes documentation regarding Replay integration from class-based to functional-based e.g. `new Sentry.Replay()` --> `Sentry.replayIntegration()`
1 parent dcfe41b commit d192b24

33 files changed

+63
-63
lines changed

src/docs/product/sentry-basics/integrate-frontend/initialize-sentry-sdk.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Sentry captures data by using a platform-specific SDK that you add to your appli
4949

5050
Sentry.init({
5151
dsn: "<your_DSN_key>",
52-
integrations: [new Sentry.BrowserTracing(), new Sentry.Replay()],
52+
integrations: [new Sentry.BrowserTracing(), Sentry.replayIntegration()],
5353

5454
// Set tracesSampleRate to 1.0 to capture 100%
5555
// of transactions for performance monitoring.

src/platform-includes/getting-started-config/javascript.angular.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Sentry.init({
1919
}),
2020
// Registers the Replay integration,
2121
// which automatically captures Session Replays
22-
new Sentry.Replay(),
22+
Sentry.replayIntegration(),
2323
],
2424
2525
// Set tracesSampleRate to 1.0 to capture 100%

src/platform-includes/getting-started-config/javascript.ember.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import * as Sentry from "@sentry/ember";
1212

1313
Sentry.init({
1414
dsn: "___PUBLIC_DSN___",
15-
integrations: [new Sentry.Replay()],
15+
integrations: [Sentry.replayIntegration()],
1616

1717
// Set tracesSampleRate to 1.0 to capture 100%
1818
// of transactions for performance monitoring.

src/platform-includes/getting-started-config/javascript.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Sentry.init({
1313
// Alternatively, use `process.env.npm_package_version` for a dynamic release version
1414
// if your build tool supports it.
1515
release: "my-project-name@2.3.12",
16-
integrations: [new Sentry.BrowserTracing(), new Sentry.Replay()],
16+
integrations: [new Sentry.BrowserTracing(), Sentry.replayIntegration()],
1717

1818
// Set tracesSampleRate to 1.0 to capture 100%
1919
// of transactions for performance monitoring.
@@ -44,7 +44,7 @@ Sentry.init({
4444
// Alternatively, use `process.env.npm_package_version` for a dynamic release version
4545
// if your build tool supports it.
4646
release: "my-project-name@2.3.12",
47-
integrations: [new Sentry.BrowserTracing(), new Sentry.Replay()],
47+
integrations: [new Sentry.BrowserTracing(), Sentry.replayIntegration()],
4848
4949
// Set tracesSampleRate to 1.0 to capture 100%
5050
// of transactions for performance monitoring.
@@ -77,7 +77,7 @@ Sentry.init({
7777
// Alternatively, use `process.env.npm_package_version` for a dynamic release version
7878
// if your build tool supports it.
7979
release: "my-project-name@2.3.12",
80-
integrations: [new Sentry.BrowserTracing(), new Sentry.Replay()],
80+
integrations: [new Sentry.BrowserTracing(), Sentry.replayIntegration()],
8181
8282
// Set tracesSampleRate to 1.0 to capture 100%
8383
// of transactions for performance monitoring.

src/platform-includes/getting-started-config/javascript.react.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Sentry.init({
2121
matchRoutes
2222
),
2323
}),
24-
new Sentry.Replay()
24+
Sentry.replayIntegration()
2525
],
2626

2727
// Set tracesSampleRate to 1.0 to capture 100%

src/platform-includes/getting-started-config/javascript.solid.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { DEV } from "solid-js";
1212
if (!DEV) {
1313
Sentry.init({
1414
dsn: "<Sentry DSN>",
15-
integrations: [new Sentry.BrowserTracing(), new Sentry.Replay()],
15+
integrations: [new Sentry.BrowserTracing(), Sentry.replayIntegration()],
1616

1717
// Set tracesSampleRate to 1.0 to capture 100%
1818
// of transactions for performance monitoring.

src/platform-includes/getting-started-config/javascript.svelte.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import * as Sentry from "@sentry/svelte";
1111
// Initialize the Sentry SDK here
1212
Sentry.init({
1313
dsn: "___PUBLIC_DSN___",
14-
integrations: [new Sentry.BrowserTracing(), new Sentry.Replay()],
14+
integrations: [new Sentry.BrowserTracing(), Sentry.replayIntegration()],
1515

1616
// Set tracesSampleRate to 1.0 to capture 100%
1717
// of transactions for performance monitoring.

src/platform-includes/getting-started-config/javascript.vue.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Sentry.init({
2323
new Sentry.BrowserTracing({
2424
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
2525
}),
26-
new Sentry.Replay(),
26+
Sentry.replayIntegration(),
2727
],
2828

2929
// Set tracesSampleRate to 1.0 to capture 100%
@@ -66,7 +66,7 @@ Sentry.init({
6666
new Sentry.BrowserTracing({
6767
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
6868
}),
69-
new Sentry.Replay(),
69+
Sentry.replayIntegration(),
7070
],
7171

7272
// Set tracesSampleRate to 1.0 to capture 100%

src/platform-includes/replay/privacy-configuration/javascript.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ If you're working on a static website that's free of personal identifiable or ot
22
you can opt out of the default text masking and image blocking by configuring the `maskAllText` and `blockAllMedia` configuration options respectively:
33

44
```javascript
5-
new Sentry.Replay({
5+
Sentry.replayIntegration({
66
maskAllText: false,
77
blockAllMedia: false,
88
});
99
```
1010

11-
The following is a complete list of options that can be used in `new Replay({})`:
11+
The following is a complete list of options that can be used in `replayIntegration({})`:
1212

1313
| key | type | default | description |
1414
| ------------- | -------------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

src/platform-includes/session-replay/install/javascript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ You can change it with:
2525
Sentry.init({
2626
replaysSessionSampleRate: 0.5,
2727
integrations: [
28-
new Sentry.Replay({
28+
Sentry.replayIntegration({
2929
maskAllText: true,
3030
}),
3131
],

0 commit comments

Comments
 (0)