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:
2828npm 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
3435compatibility_flags = [" nodejs_compat" ]
@@ -46,6 +47,7 @@ import * as Sentry from '@sentry/cloudflare';
4647export 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 {
You can’t perform that action at this time.
0 commit comments