We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e424c7 commit e10cbe3Copy full SHA for e10cbe3
packages/cloudflare/README.md
@@ -28,7 +28,8 @@ To get started, first install the `@sentry/cloudflare` package:
28
npm install @sentry/cloudflare
29
```
30
31
-Then set either the `nodejs_compat` or `nodejs_als` compatibility flags in your `wrangler.toml`:
+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.
33
34
```toml
35
compatibility_flags = ["nodejs_compat"]
@@ -46,6 +47,7 @@ import * as Sentry from '@sentry/cloudflare';
46
47
export default withSentry(
48
(env) => ({
49
dsn: env.SENTRY_DSN,
50
+ // Set tracesSampleRate to 1.0 to capture 100% of spans for tracing.
51
tracesSampleRate: 1.0,
52
}),
53
{
0 commit comments