Skip to content

Commit e10cbe3

Browse files
committed
add extra readme context
1 parent 3e424c7 commit e10cbe3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: packages/cloudflare/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ To get started, first install the `@sentry/cloudflare` package:
2828
npm install @sentry/cloudflare
2929
```
3030

31-
Then set either the `nodejs_compat` or `nodejs_als` compatibility flags in your `wrangler.toml`:
31+
Then set either the `nodejs_compat` or `nodejs_als` compatibility flags in your `wrangler.toml`. This is because the SDK
32+
needs access to the `AsyncLocalStorage` API to work correctly.
3233

3334
```toml
3435
compatibility_flags = ["nodejs_compat"]
@@ -46,6 +47,7 @@ import * as Sentry from '@sentry/cloudflare';
4647
export default withSentry(
4748
(env) => ({
4849
dsn: env.SENTRY_DSN,
50+
// Set tracesSampleRate to 1.0 to capture 100% of spans for tracing.
4951
tracesSampleRate: 1.0,
5052
}),
5153
{

0 commit comments

Comments
 (0)