Skip to content

Commit 11e6f09

Browse files
authored
chore(replay): Link to Docs for CDN bundle installation (#7101)
1 parent 5c937aa commit 11e6f09

File tree

1 file changed

+8
-29
lines changed

1 file changed

+8
-29
lines changed

packages/replay/README.md

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -101,33 +101,14 @@ replay.stop(); // Stop recording
101101

102102
## Loading Replay as a CDN Bundle
103103

104-
As an alternative to the NPM package, you can load the Replay integration bundle from our CDN.
104+
As an alternative to the NPM package, you can use Replay as a CDN bundle.
105+
Please refer to the [Session Replay installation guide](https://docs.sentry.io/platforms/javascript/session-replay/#install) for CDN bundle instructions.
105106

106-
```js
107-
// Browser SDK bundle
108-
<script
109-
src="https://browser.sentry-cdn.com/7.31.1/bundle.tracing.replay.min.js"
110-
crossorigin="anonymous"
111-
></script>
112-
113-
// Add Sentry.Integrations.Replay to your Sentry.init call
114-
Sentry.init({
115-
// This sets the sample rate to be 10%. You may want this to be 100% while
116-
// in development and sample at a lower rate in production
117-
replaysSessionSampleRate: 0.1,
118-
119-
// If the entire session is not sampled, use the below sample rate to sample
120-
// sessions when an error occurs.
121-
replaysOnErrorSampleRate: 1.0,
122-
123-
dsn: '__DSN__',
124-
integrations: [new Sentry.Integrations.Replay()],
125-
});
126-
```
127-
128-
The Replay initilialization [configuration](#configuration) options are identical to the options of the NPM package.
129-
130-
Alternatively, you can also load the Replay integration separately from other bundles:
107+
<details>
108+
<summary>Deprecated Replay integration bundle</summary>
109+
Installing the replay integration as a secondary integration bundle to the SDK bundle was deprecated in favour of
110+
complete CDN bundles that already contain the replay integration. No need to keep two bundles in sync anymore.
111+
The `replay.(min.)js` bundle will be removed in v8 of the JS SDKs.
131112

132113
```html
133114
<script
@@ -139,9 +120,7 @@ Alternatively, you can also load the Replay integration separately from other bu
139120
crossorigin="anonymous"
140121
></script>
141122
```
142-
143-
Please visit our [CDN bundle docs](https://docs.sentry.io/platforms/javascript/install/cdn/#available-bundles) to get the correct `integrity` checksums for your version.
144-
Note that the two bundle versions always have to match.
123+
</details>
145124

146125
## Sessions
147126

0 commit comments

Comments
 (0)