You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/platforms/javascript/common/install/cdn.mdx
+27-15Lines changed: 27 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -8,38 +8,43 @@ import JsBundleList from "~src/components/jsBundleList";
8
8
9
9
Sentry supports loading the JavaScript SDK from a CDN. Generally we suggest using our npm package (`@sentry/browser`) instead, as using the CDN can create scenarios where Sentry is unable to load due to networking issues or common extensions like ad blockers. If you _must_ use a CDN, take a look at [loading Sentry lazily with our JS loader](../lazy-load-sentry/), which provides a deferred version of our minified ES5 browser bundle. To see what other bundles are available, see [Available Bundles](#available-bundles) below.
10
10
11
+
## Default Bundle
12
+
13
+
To use Sentry for error and performance monitoring, you can use the following bundle:
<Alertlevel="info"title="Updates to naming scheme in SDK version 7">
23
+
## Performance & Replay Bundle
20
24
21
-
Version 7 of the Sentry JavaScript SDKs changed the bundles to be ES6 by default.
22
-
Previously, the default bundles were compiled to ES5. If you need to support ES5, see [Available Bundles](#available-bundles) or the [Migration Guide to Version 7](https://github.com/getsentry/sentry-javascript/blob/master/MIGRATION.md#upgrading-from-6x-to-7x).
25
+
To use Sentry for error and performance monitoring, as well as for [Session Replay](../../session-replay), you can use the following bundle:
To use Sentry's performance tracing, an alternative bundle is needed. This allows us to keep the filesize down for users who only need error monitoring.
37
+
If you only use Sentry for error monitoring, and don't need performance tracing or replay functionality, you can use the following bundle:
You only need to load `bundle.tracing.min.js`, which provides both error and performance monitoring. There is also an ES5 version of the tracing bundle, `bundle.tracing.es5.min.js`.
41
-
42
-
</Note>
47
+
## Usage & Configuration
43
48
44
49
Once you've included the Sentry SDK bundle in your page, you can use Sentry in your own bundle:
45
50
@@ -72,6 +77,13 @@ For example:
72
77
-`rewriteframes.es5.min.js` is the `RewriteFrames` integration, compiled to ES5 and minified, with no debug logging
73
78
-`bundle.tracing.es5.debug.min.js` is `@sentry/browser` and `@sentry/tracing` bundled together, compiled to ES5 and minified, with debug logging included
74
79
80
+
<Alertlevel="info"title="Updates to naming scheme in SDK version 7">
81
+
82
+
Version 7 of the Sentry JavaScript SDKs changed the bundles to be ES6 by default.
83
+
Previously, the default bundles were compiled to ES5. If you need to support ES5, see [Available Bundles](#available-bundles) or the [Migration Guide to Version 7](https://github.com/getsentry/sentry-javascript/blob/master/MIGRATION.md#upgrading-from-6x-to-7x).
0 commit comments