Skip to content

Commit 5481b4e

Browse files
authored
fix(browser): Mention release health in loader limitations section (#4775)
In our current implementation of the feature, a session and a pageload transaction are essentially one and the same, which means that release health doesn't work any better than tracing does when you're using the loader. This clarifies that in the loader's Limitations section. Fixes #4722.
1 parent de57667 commit 5481b4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/platforms/javascript/common/install/lazy-load-sentry.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ The loader script includes a call to `Sentry.init` with one configuration option
9999

100100
Because the loader injects the SDK asynchronously, only *unhandled errors* and *unhandled promise rejections* will be caught and buffered before the SDK is fully loaded. Specifically, the capturing of any [breadcrumb data](../../enriching-events/breadcrumbs/) will not be available until the SDK is fully loaded and initialized. To reduce the amount of time these features are unavailable, set `data-lazy="no"` or call `forceLoad()` as described above.
101101

102-
For similar reasons, the loader is not available in a form which includes performance monitoring. If you want to monitor the performance of your app, including pageload times, please [bundle the SDK with your app](../npm) or use our CDN, specifically the [bundle which includes tracing features](../cdn/#performance-bundle).
102+
For similar reasons, the loader is not available in a form which includes either performance monitoring or release health (sessions). If you want performance monitoring, including pageload times, you can [bundle both `@sentry/browser` and `@sentry/tracing` with your app](../npm) or use our CDN, specifically the [bundle that includes tracing features](../cdn/#performance-bundle). For release health, bundling is the only option, though no additional package is needed.
103+
103104

104105
If you want to understand the inner workings of the loader itself, you can read the documented source code in all its glory over at the [sentry-javascript repository](https://github.com/getsentry/sentry-javascript/blob/master/packages/browser/src/loader.js).

0 commit comments

Comments
 (0)