mirror of
https://github.com/LukeHagar/LukeHagar.com.git
synced 2025-12-06 04:20:17 +00:00
Removed sentry
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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();
|
|
||||||
@@ -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();
|
|
||||||
@@ -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);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
Reference in New Issue
Block a user