Removed sentry

This commit is contained in:
Luke Hagar
2024-05-20 11:19:16 -05:00
parent cb3e2b4f66
commit 5fc91be706
4 changed files with 0 additions and 51 deletions

View File

@@ -12,7 +12,6 @@
"format": "prettier --plugin-search-dir . --write ." "format": "prettier --plugin-search-dir . --write ."
}, },
"devDependencies": { "devDependencies": {
"@sentry/sveltekit": "^7.91.0",
"@skeletonlabs/skeleton": "^2.7.0", "@skeletonlabs/skeleton": "^2.7.0",
"@skeletonlabs/tw-plugin": "^0.3.1", "@skeletonlabs/tw-plugin": "^0.3.1",
"@sveltejs/adapter-auto": "^3.0.0", "@sveltejs/adapter-auto": "^3.0.0",

View File

@@ -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();

View File

@@ -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();

View File

@@ -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);
});
});