fix: sentry dsn using const

This commit is contained in:
Torsten Dittmann
2024-06-26 12:35:08 +02:00
parent 685bfab919
commit a57d752a4e
3 changed files with 6 additions and 4 deletions

View File

@@ -1,8 +1,9 @@
import { SENTRY_DSN } from "$lib/constants";
import { handleErrorWithSentry, replayIntegration } from "@sentry/sveltekit";
import * as Sentry from '@sentry/sveltekit';
Sentry.init({
dsn: 'https://27d41dc8bb67b596f137924ab8599e59@o1063647.ingest.us.sentry.io/4507497727000576',
dsn: SENTRY_DSN,
tracesSampleRate: 1.0,
// This sets the sample rate to be 10%. You may want this to be 100% while
@@ -12,7 +13,7 @@ Sentry.init({
// If the entire session is not sampled, use the below sample rate to sample
// sessions when an error occurs.
replaysOnErrorSampleRate: 1.0,
// If you don't want to use Session Replay, just remove the line below:
integrations: [replayIntegration()],
});