diff --git a/src/routes/(root)/orders/_components/_Cart.svelte b/src/routes/(root)/orders/_components/_Cart.svelte index 8f972514..77ea867f 100644 --- a/src/routes/(root)/orders/_components/_Cart.svelte +++ b/src/routes/(root)/orders/_components/_Cart.svelte @@ -25,7 +25,7 @@ }); va.track('cart:handle-checkout'); - Sentry.configureScope((scope) => scope.setTransactionName('Handle Checkout')); + Sentry.getCurrentScope().setTransactionName('Handle Checkout'); const { eventId, cart } = $state.context; Sentry.setContext('cart', cart); diff --git a/src/routes/+layout.js b/src/routes/+layout.js index 7809895b..c195844e 100644 --- a/src/routes/+layout.js +++ b/src/routes/+layout.js @@ -15,7 +15,7 @@ const correlationId = uuidv4(); inject({ mode: dev ? 'development' : 'production' }); if (!dev) { - Sentry.configureScope((scope) => { + Sentry.withScope((scope) => { scope.setTag('correlationId', correlationId); }); }