From 5fc91be70674a0861e694b62767fa6870d90ba5d Mon Sep 17 00:00:00 2001 From: Luke Hagar Date: Mon, 20 May 2024 11:19:16 -0500 Subject: [PATCH] Removed sentry --- package.json | 1 - src/hooks.client.ts | 26 -------------------------- src/hooks.server.ts | 17 ----------------- src/index.test.ts | 7 ------- 4 files changed, 51 deletions(-) delete mode 100644 src/hooks.client.ts delete mode 100644 src/hooks.server.ts delete mode 100644 src/index.test.ts diff --git a/package.json b/package.json index 622549d..08ce16a 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,6 @@ "format": "prettier --plugin-search-dir . --write ." }, "devDependencies": { - "@sentry/sveltekit": "^7.91.0", "@skeletonlabs/skeleton": "^2.7.0", "@skeletonlabs/tw-plugin": "^0.3.1", "@sveltejs/adapter-auto": "^3.0.0", diff --git a/src/hooks.client.ts b/src/hooks.client.ts deleted file mode 100644 index dd9aa3e..0000000 --- a/src/hooks.client.ts +++ /dev/null @@ -1,26 +0,0 @@ -// This file is used to initialize Sentry on the client side. -import { dev } from '$app/environment'; -import { handleErrorWithSentry, replayIntegration } from '@sentry/sveltekit'; -import * as Sentry from '@sentry/sveltekit'; - -Sentry.init({ - environment: dev ? 'development' : 'production', - - dsn: 'https://132cfeda18443f305824133b96e8bc0e@sentry.plygrnd.org/2', - - tracesSampleRate: 1.0, - - // This sets the sample rate to be 10%. You may want this to be 100% while - // in development and sample at a lower rate in production - replaysSessionSampleRate: dev ? 1.0 : 0.1, - - // 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()] -}); - -// If you have a custom error handler, pass it to `handleErrorWithSentry` -export const handleError = handleErrorWithSentry(); diff --git a/src/hooks.server.ts b/src/hooks.server.ts deleted file mode 100644 index adf001e..0000000 --- a/src/hooks.server.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { sequence } from '@sveltejs/kit/hooks'; -import { handleErrorWithSentry, sentryHandle } from '@sentry/sveltekit'; -import * as Sentry from '@sentry/sveltekit'; -import { dev } from '$app/environment'; - -Sentry.init({ - environment: dev ? 'development' : 'production', - dsn: 'https://132cfeda18443f305824133b96e8bc0e@sentry.plygrnd.org/2', - tracesSampleRate: 1.0, - profilesSampleRate: 1.0 // Profiling sample rate is relative to tracesSampleRate -}); - -// If you have custom handlers, make sure to place them after `sentryHandle()` in the `sequence` function. -export const handle = sequence(sentryHandle()); - -// If you have a custom error handler, pass it to `handleErrorWithSentry` -export const handleError = handleErrorWithSentry(); diff --git a/src/index.test.ts b/src/index.test.ts deleted file mode 100644 index e07cbbd..0000000 --- a/src/index.test.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { describe, it, expect } from 'vitest'; - -describe('sum test', () => { - it('adds 1 + 2 to equal 3', () => { - expect(1 + 2).toBe(3); - }); -});