Skip to content

Commit

Permalink
updating sentry api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
theClarkSell committed Jun 25, 2024
1 parent 39852da commit d6a6d88
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 d6a6d88

Please sign in to comment.