Skip to content

Commit

Permalink
updating sentry api calls (#253)
Browse files Browse the repository at this point in the history
configure scope is no longer, updating api calls.
  • Loading branch information
theClarkSell committed Jun 12, 2024
2 parents c564e89 + ee085bf commit 39852da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes/(root)/orders/_components/_Cart.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const correlationId = uuidv4();
inject({ mode: dev ? 'development' : 'production' });

if (!dev) {
Sentry.configureScope((scope) => {
Sentry.withScope((scope) => {
scope.setTag('correlationId', correlationId);
});
}
Expand Down

0 comments on commit 39852da

Please sign in to comment.