diff --git a/platform-includes/logs/options/javascript.mdx b/platform-includes/logs/options/javascript.mdx index 26cb75ac3822e..759530e608b30 100644 --- a/platform-includes/logs/options/javascript.mdx +++ b/platform-includes/logs/options/javascript.mdx @@ -1,20 +1,18 @@ #### beforeSendLog -To filter logs, or update them before they are sent to Sentry, you can use the `_experiments.beforeSendLog` option. +To filter logs, or update them before they are sent to Sentry, you can use the `beforeSendLog` option. ```js Sentry.init({ dsn: "___PUBLIC_DSN___", - _experiments: { - enableLogs: true, - beforeSendLog: (log) => { - if (log.level === "info") { - // Filter out all info logs - return null; - } + enableLogs: true, + beforeSendLog: (log) => { + if (log.level === "info") { + // Filter out all info logs + return null; + } - return log; - }, + return log; }, }); ``` diff --git a/platform-includes/logs/setup/javascript.cloudflare.mdx b/platform-includes/logs/setup/javascript.cloudflare.mdx index a8cd389efe03e..bc802dd3c9c1f 100644 --- a/platform-includes/logs/setup/javascript.cloudflare.mdx +++ b/platform-includes/logs/setup/javascript.cloudflare.mdx @@ -1,4 +1,4 @@ -To enable logging, you need to initialize the SDK with the `_experiments.enableLogs` option set to `true`. +To enable logging, you need to initialize the SDK with the `enableLogs` option set to `true`. ```typescript import * as Sentry from "@sentry/cloudflare"; @@ -7,7 +7,7 @@ export default Sentry.withSentry( (env: Env) => ({ dsn: "___PUBLIC_DSN___", // Enable logs to be sent to Sentry - _experiments: { enableLogs: true }, + enableLogs: true, }), { async fetch(request, env, ctx) { diff --git a/platform-includes/logs/setup/javascript.mdx b/platform-includes/logs/setup/javascript.mdx index 6d407dfbcd041..99356aaa29e8c 100644 --- a/platform-includes/logs/setup/javascript.mdx +++ b/platform-includes/logs/setup/javascript.mdx @@ -1,9 +1,9 @@ -To enable logging, you need to initialize the SDK with the `_experiments.enableLogs` option set to `true`. +To enable logging, you need to initialize the SDK with the `enableLogs` option set to `true`. ```js Sentry.init({ dsn: "___PUBLIC_DSN___", // Enable logs to be sent to Sentry - _experiments: { enableLogs: true }, + enableLogs: true, }); ```