From cb7a107aa2b7dc71fc4a17bc64753e64866defd7 Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Mon, 9 May 2022 13:19:55 +0200 Subject: [PATCH] Update ExtraErrorData depth description --- .../extra-error-data/javascript.mdx | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/includes/configuration/extra-error-data/javascript.mdx b/src/includes/configuration/extra-error-data/javascript.mdx index 711ada9cf8428..3a97f92533e97 100644 --- a/src/includes/configuration/extra-error-data/javascript.mdx +++ b/src/includes/configuration/extra-error-data/javascript.mdx @@ -4,16 +4,14 @@ import { ExtraErrorData as ExtraErrorDataIntegration } from "@sentry/integration Sentry.init({ dsn: "___PUBLIC_DSN___", - integrations: [new ExtraErrorDataIntegration( - { + integrations: [ + new ExtraErrorDataIntegration({ // Limit of how deep the object serializer should go. Anything deeper than limit will // be replaced with standard Node.js REPL notation of [Object], [Array], [Function] or // a primitive value. Defaults to 3. - // When changing this value, make sure to update `normalizeDepth` of the whole SDK - // to `depth + 1` in order to get it serialized properly - https://docs.sentry.io/platforms/javascript/configuration/options/#normalize-depth - depth: number; - } - )], + depth: number, + }), + ], }); ``` @@ -32,15 +30,13 @@ Sentry.init({ Sentry.init({ dsn: "___PUBLIC_DSN___", - integrations: [new Sentry.Integrations.ExtraErrorData( - { + integrations: [ + new Sentry.Integrations.ExtraErrorData({ // Limit of how deep the object serializer should go. Anything deeper than limit will // be replaced with standard Node.js REPL notation of [Object], [Array], [Function] or // a primitive value. Defaults to 3. - // When changing this value, make sure to update `normalizeDepth` of the whole SDK - // to `depth + 1` in order to get it serialized properly - https://docs.sentry.io/platforms/javascript/configuration/options/#normalize-depth - depth: number; - } - )], + depth: number, + }) + ], }); ```