Disable node profiling as the native module was not bundled correctly

This commit is contained in:
Jade Ellis
2024-09-10 02:06:27 +01:00
parent 62acbe3a3e
commit 039186b9e0
3 changed files with 3 additions and 438 deletions
+3 -4
View File
@@ -3,16 +3,15 @@ import { init as initSentry, handleErrorWithSentry, sentryHandle } from '@sentry
import type { Handle } from "@sveltejs/kit";
import { randomBytes } from 'crypto';
import { SENTRY_DSN, SENTRY_REPORT_URL } from '$lib/config';
import { nodeProfilingIntegration } from "@sentry/profiling-node";
// import { nodeProfilingIntegration } from "@sentry/profiling-node";
initSentry({
dsn: SENTRY_DSN,
environment: import.meta.env.MODE,
tracesSampleRate: 1.0,
profilesSampleRate: 1.0,
// profilesSampleRate: 1.0,
integrations: [
// Add our Profiling integration
nodeProfilingIntegration(),
],
})