From f9c3a6b957464dc1f3e23afa693f9b3856ede0f3 Mon Sep 17 00:00:00 2001 From: Valentyne Stigloher Date: Mon, 18 Mar 2024 14:04:30 +0100 Subject: [PATCH] (sentry) temporarily add event data as extra breadcrumb for troubleshooting beforeSend --- nuxt.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nuxt.config.ts b/nuxt.config.ts index 93b0219a8..49a002b13 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -272,6 +272,14 @@ const nuxtConfig: NuxtConfig = { // do not send user information as Sentry somehow automatically detects username, email and user id // https://docs.sentry.io/platforms/javascript/data-management/sensitive-data/ delete event.user; + + // temporarily add the event data as breadcrumb to show original event information + event.breadcrumbs?.push({ + category: 'sentry.troubleshoot', + level: 'debug', + message: JSON.stringify(event), + }); + return event; }, beforeSendTransaction(event) {