File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ To get started, first install the `@sentry/cloudflare` package:
28
28
npm install @sentry/cloudflare
29
29
```
30
30
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.
32
33
33
34
``` toml
34
35
compatibility_flags = [" nodejs_compat" ]
@@ -46,6 +47,7 @@ import * as Sentry from '@sentry/cloudflare';
46
47
export default withSentry (
47
48
(env ) => ({
48
49
dsn: env .SENTRY_DSN ,
50
+ // Set tracesSampleRate to 1.0 to capture 100% of spans for tracing.
49
51
tracesSampleRate: 1.0 ,
50
52
}),
51
53
{
You can’t perform that action at this time.
0 commit comments