Skip to content

Commit

Permalink
Merge pull request #130 from ThatConference/chore/sentry-deny-urls
Browse files Browse the repository at this point in the history
Chore/sentry deny urls
  • Loading branch information
brettski committed Nov 3, 2023
2 parents ad3cb4e + c1654e4 commit 9c83703
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thatconference.com",
"version": "5.1.9",
"version": "5.1.10",
"description": "THATConference.com website",
"main": "index.js",
"type": "module",
Expand Down
4 changes: 3 additions & 1 deletion src/hooks.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import { logging } from '$lib/config.public';

Sentry.init({
dsn: logging.dsn,
attachStacktrace: true,
tracesSampleRate: 1,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1,
integrations: [new Sentry.Replay()],
environment: logging.environment
environment: logging.environment,
denyUrls: logging.denyUrls
});

export const handleError = Sentry.handleErrorWithSentry();
4 changes: 3 additions & 1 deletion src/hooks.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ const { clientSecret, secret } = privateConfig();

Sentry.init({
dsn: logging.dsn,
attachStacktrace: true,
environment: logging.environment,
tracesSampleRate: 1
tracesSampleRate: 1,
denyUrls: logging.denyUrls
});

const loginRedirectPaths = ['/my', '/sponsor-admin', '/admin', '/speakers'];
Expand Down
10 changes: 9 additions & 1 deletion src/lib/config.public.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ export const securityConfig = () => {

export const logging = {
dsn: 'https://857800ed593d481bb0da2843516d7845@o235190.ingest.sentry.io/4504617287417856',
environment: env.PUBLIC_VERCEL_ENV
environment: env.PUBLIC_VERCEL_ENV,
denyUrls: [
'/cdn-cgi/zaraz/',
'https://js.zi-scripts.com/', // zoom info
/^chrome:\/\//i,
/^https?:\/\/(?:\w+\.)?cloudflareinsights\.com\//,
/^https?:\/\/(?:\w+\.)?gstatic\.com\//,
'bpm:///conversations-embed'
]
};

export const debug = {
Expand Down

0 comments on commit 9c83703

Please sign in to comment.