diff --git a/packages/cloudflare/README.md b/packages/cloudflare/README.md index c11ca3544de2..b09fce218965 100644 --- a/packages/cloudflare/README.md +++ b/packages/cloudflare/README.md @@ -22,20 +22,16 @@ To get started, first install the `@sentry/cloudflare` package: npm install @sentry/cloudflare ``` -Then either set the `nodejs_als` or `nodejs_compat` compatibility flags in your `wrangler.jsonc`/`wrangler.toml` config. This is because the SDK needs access to the `AsyncLocalStorage` API to work correctly. +Then set the `nodejs_compat` compatibility flag in your `wrangler.jsonc`/`wrangler.toml` config. This is because the SDK needs access to Node.js compatibility APIs to work correctly. ```jsonc {tabTitle:JSON} {filename:wrangler.jsonc} { - "compatibility_flags": [ - "nodejs_als", - // "nodejs_compat" - ], + "compatibility_flags": ["nodejs_compat"], } ``` ```toml {tabTitle:Toml} {filename:wrangler.toml} -compatibility_flags = ["nodejs_als"] -# compatibility_flags = ["nodejs_compat"] +compatibility_flags = ["nodejs_compat"] ``` ## Setup (Cloudflare Pages) diff --git a/packages/cloudflare/src/async.ts b/packages/cloudflare/src/async.ts index 66f2d439a3ce..adb465e8eca1 100644 --- a/packages/cloudflare/src/async.ts +++ b/packages/cloudflare/src/async.ts @@ -8,7 +8,7 @@ import { getDefaultCurrentScope, getDefaultIsolationScope, setAsyncContextStrate * Sets the async context strategy to use AsyncLocalStorage. * * AsyncLocalStorage is only available in the cloudflare workers runtime if you set - * compatibility_flags = ["nodejs_compat"] or compatibility_flags = ["nodejs_als"] + * compatibility_flags = ["nodejs_compat"] * * @internal Only exported to be used in higher-level Sentry packages * @hidden Only exported to be used in higher-level Sentry packages