diff --git a/platform-includes/metrics/configure/javascript.astro.mdx b/platform-includes/metrics/configure/javascript.astro.mdx index 2bc32da2701bf..e0e76fef5a582 100644 --- a/platform-includes/metrics/configure/javascript.astro.mdx +++ b/platform-includes/metrics/configure/javascript.astro.mdx @@ -1,11 +1,15 @@ To use metrics with astro, first [manually setup up the SDK as per the Astro SDK docs](/platforms/javascript/guides/astro/manual-setup/#manual-sdk-initialization). -Metrics work out of the box by calling `Sentry.init` no further setup is required. +Metrics work out of the box by calling `Sentry.init`, no further setup is required. ```JavaScript // sentry.client.config.js Sentry.init({ dsn: '___PUBLIC_DSN___', + // Only needed for SDK versions < 8.0.0 + // integrations: [ + // Sentry.metrics.metricsAggregatorIntegration(), + // ], }); ``` @@ -13,5 +17,9 @@ Sentry.init({ // sentry.server.config.js Sentry.init({ dsn: '___PUBLIC_DSN___', + // Only needed for SDK versions < 8.0.0 + // _experiments: { + // metricsAggregator: true, + // }, }); ``` diff --git a/platform-includes/metrics/configure/javascript.bun.mdx b/platform-includes/metrics/configure/javascript.bun.mdx index 11336fb09970a..683464e0d8693 100644 --- a/platform-includes/metrics/configure/javascript.bun.mdx +++ b/platform-includes/metrics/configure/javascript.bun.mdx @@ -1,10 +1,11 @@ -To configure metrics, add the `metricsAggregator` experimental option to your `Sentry.init` call. +Metrics work out of the box by calling `Sentry.init`, no further setup is required. ```JavaScript Sentry.init({ dsn: '___PUBLIC_DSN___', - _experiments: { - metricsAggregator: true, - }, + // Only needed for SDK versions < 8.0.0 + // _experiments: { + // metricsAggregator: true, + // }, }); ``` diff --git a/platform-includes/metrics/configure/javascript.deno.mdx b/platform-includes/metrics/configure/javascript.deno.mdx index 11336fb09970a..683464e0d8693 100644 --- a/platform-includes/metrics/configure/javascript.deno.mdx +++ b/platform-includes/metrics/configure/javascript.deno.mdx @@ -1,10 +1,11 @@ -To configure metrics, add the `metricsAggregator` experimental option to your `Sentry.init` call. +Metrics work out of the box by calling `Sentry.init`, no further setup is required. ```JavaScript Sentry.init({ dsn: '___PUBLIC_DSN___', - _experiments: { - metricsAggregator: true, - }, + // Only needed for SDK versions < 8.0.0 + // _experiments: { + // metricsAggregator: true, + // }, }); ``` diff --git a/platform-includes/metrics/configure/javascript.electron.mdx b/platform-includes/metrics/configure/javascript.electron.mdx index ff9d809f5645c..6f89ec95b2156 100644 --- a/platform-includes/metrics/configure/javascript.electron.mdx +++ b/platform-includes/metrics/configure/javascript.electron.mdx @@ -1,12 +1,13 @@ -To configure metrics, add the `metricsAggregator` experimental option to your `Sentry.init` call in your main process. +Metrics work out of the box by calling `Sentry.init`, no further setup is required. ```JavaScript import * as Sentry from '@sentry/electron/main'; Sentry.init({ dsn: '___PUBLIC_DSN___', - _experiments: { - metricsAggregator: true, - }, + // Only needed for SDK versions < 8.0.0 + // _experiments: { + // metricsAggregator: true, + // }, }); ``` diff --git a/platform-includes/metrics/configure/javascript.mdx b/platform-includes/metrics/configure/javascript.mdx index 30d6b5c11fb58..716dc6192d405 100644 --- a/platform-includes/metrics/configure/javascript.mdx +++ b/platform-includes/metrics/configure/javascript.mdx @@ -1,7 +1,11 @@ -Metrics work out of the box by calling `Sentry.init` no further setup is required. +Metrics work out of the box by calling `Sentry.init`, no further setup is required. ```JavaScript Sentry.init({ dsn: '___PUBLIC_DSN___', + // Only needed for SDK versions < 8.0.0 + // integrations: [ + // Sentry.metrics.metricsAggregatorIntegration(), + // ], }); ``` diff --git a/platform-includes/metrics/configure/javascript.nextjs.mdx b/platform-includes/metrics/configure/javascript.nextjs.mdx index 506129e63141c..6d0d484097156 100644 --- a/platform-includes/metrics/configure/javascript.nextjs.mdx +++ b/platform-includes/metrics/configure/javascript.nextjs.mdx @@ -1,14 +1,23 @@ -Metrics work out of the box by calling `Sentry.init` no further setup is required. +Metrics work out of the box by calling `Sentry.init`, no further setup is required. ```JavaScript // sentry.client.config.js Sentry.init({ dsn: '___PUBLIC_DSN___', + // Only needed for SDK versions < 8.0.0 + // integrations: [ + // Sentry.metrics.metricsAggregatorIntegration(), + // ], }); ``` ```JavaScript +// instrumentation.js Sentry.init({ dsn: '___PUBLIC_DSN___', + // Only needed for SDK versions < 8.0.0 + // _experiments: { + // metricsAggregator: true, + // }, }); ``` diff --git a/platform-includes/metrics/configure/javascript.node.mdx b/platform-includes/metrics/configure/javascript.node.mdx index 11336fb09970a..683464e0d8693 100644 --- a/platform-includes/metrics/configure/javascript.node.mdx +++ b/platform-includes/metrics/configure/javascript.node.mdx @@ -1,10 +1,11 @@ -To configure metrics, add the `metricsAggregator` experimental option to your `Sentry.init` call. +Metrics work out of the box by calling `Sentry.init`, no further setup is required. ```JavaScript Sentry.init({ dsn: '___PUBLIC_DSN___', - _experiments: { - metricsAggregator: true, - }, + // Only needed for SDK versions < 8.0.0 + // _experiments: { + // metricsAggregator: true, + // }, }); ``` diff --git a/platform-includes/metrics/configure/javascript.remix.mdx b/platform-includes/metrics/configure/javascript.remix.mdx index 22362eccbadfc..af36485fd5784 100644 --- a/platform-includes/metrics/configure/javascript.remix.mdx +++ b/platform-includes/metrics/configure/javascript.remix.mdx @@ -1,9 +1,13 @@ -Metrics work out of the box by calling `Sentry.init` no further setup is required. +Metrics work out of the box by calling `Sentry.init`, no further setup is required. ```JavaScript // entry.client.tsx Sentry.init({ dsn: '___PUBLIC_DSN___', + // Only needed for SDK versions < 8.0.0 + // integrations: [ + // Sentry.metrics.metricsAggregatorIntegration(), + // ], }); ``` @@ -11,5 +15,9 @@ Sentry.init({ // entry.server.tsx Sentry.init({ dsn: '___PUBLIC_DSN___', + // Only needed for SDK versions < 8.0.0 + // _experiments: { + // metricsAggregator: true, + // }, }); ``` diff --git a/platform-includes/metrics/configure/javascript.sveltekit.mdx b/platform-includes/metrics/configure/javascript.sveltekit.mdx index 5cbd32a789b6a..1bcdbb20be151 100644 --- a/platform-includes/metrics/configure/javascript.sveltekit.mdx +++ b/platform-includes/metrics/configure/javascript.sveltekit.mdx @@ -1,9 +1,13 @@ -Metrics work out of the box by calling `Sentry.init` no further setup is required. +Metrics work out of the box by calling `Sentry.init`, no further setup is required. ```JavaScript // hooks.client.js Sentry.init({ dsn: '___PUBLIC_DSN___', + // Only needed for SDK versions < 8.0.0 + // integrations: [ + // Sentry.metrics.metricsAggregatorIntegration(), + // ], }); ``` @@ -11,5 +15,9 @@ Sentry.init({ // hooks.server.js Sentry.init({ dsn: '___PUBLIC_DSN___', + // Only needed for SDK versions < 8.0.0 + // _experiments: { + // metricsAggregator: true, + // }, }); ```