Skip to content

Commit

Permalink
updating sentry api calls (#254)
Browse files Browse the repository at this point in the history
Turning off performance tracing.
  • Loading branch information
theClarkSell committed Jun 25, 2024
2 parents 39852da + d6a6d88 commit b15b7f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions src/hooks.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@ import config, { logging } from '$lib/config.public';
Sentry.init({
enabled: config.nodeEnv !== 'development',
dsn: logging.dsn,
attachStacktrace: true,
tracesSampleRate: 1,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1,
integrations: [new Sentry.Replay()],
environment: logging.environment,
attachStacktrace: true,
denyUrls: logging.denyUrls,
enableTracing: false
enableTracing: false,
tracesSampleRate: 0
});

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

const loginRedirectPaths = ['/my', '/sponsor-admin', '/admin', '/speakers'];
Expand Down

0 comments on commit b15b7f1

Please sign in to comment.