Skip to content

Commit

Permalink
fix: updating sentry api calls (#1512)
Browse files Browse the repository at this point in the history
turning off sentry's performance tracking
  • Loading branch information
theClarkSell authored Jun 25, 2024
2 parents 99cd296 + 526ffd3 commit 0eedd2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 3 additions & 5 deletions src/hooks.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ import { logging } from '$utils/config.public';
Sentry.init({
dsn: logging.dsn,
attachStacktrace: true,
tracesSampleRate: 1,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1,
integrations: [new Sentry.Replay()],
environment: logging.environment,
denyUrls: logging.denyUrls
denyUrls: logging.denyUrls,
enableTracing: false,
tracesSampleRate: 0
});

export const handleError = Sentry.handleErrorWithSentry();
5 changes: 3 additions & 2 deletions src/hooks.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ Sentry.init({
dsn: logging.dsn,
attachStacktrace: true,
environment: logging.environment,
tracesSampleRate: 1,
denyUrls: logging.denyUrls
denyUrls: logging.denyUrls,
enableTracing: false,
tracesSampleRate: 0
});

const loginRedirectPaths = [
Expand Down

0 comments on commit 0eedd2d

Please sign in to comment.