diff --git a/app/global-error.tsx b/app/global-error.tsx index 12812042d..06b18cbaa 100644 --- a/app/global-error.tsx +++ b/app/global-error.tsx @@ -9,9 +9,7 @@ export default function GlobalError({ error: Error & { digest?: string }; }) { useEffect(() => { - import('@sentry/nextjs').then((Sentry) => { - Sentry.captureException(error); - }); + console.error('Global Error:', error); }, [error]); return ( diff --git a/components/analytics/ClientNotFoundTracker.tsx b/components/analytics/ClientNotFoundTracker.tsx index b5af55e9a..79a4edcc8 100644 --- a/components/analytics/ClientNotFoundTracker.tsx +++ b/components/analytics/ClientNotFoundTracker.tsx @@ -13,13 +13,7 @@ export default function ClientNotFoundTracker({ path }: { path: string }) { path, }); - import('@sentry/nextjs').then((Sentry) => { - Sentry.withScope((scope) => { - scope.setTag('status_code', '404'); - scope.setTag('path', path); - Sentry.captureMessage(`Route Not Found: ${path}`, 'warning'); - }); - }); + }, [trackEvent, path]); return null; diff --git a/lib/services/create-services.ts b/lib/services/create-services.ts index 534125275..ed3c396ba 100644 --- a/lib/services/create-services.ts +++ b/lib/services/create-services.ts @@ -2,7 +2,6 @@ import { AppServices } from './app-services'; import { NoopAnalyticsService } from './analytics/noop-analytics-service'; import { UmamiAnalyticsService } from './analytics/umami-analytics-service'; import { MemoryCacheService } from './cache/memory-cache-service'; -import { GlitchtipErrorReportingService } from './errors/glitchtip-error-reporting-service'; import { NoopErrorReportingService } from './errors/noop-error-reporting-service'; import { NoopLoggerService } from './logging/noop-logger-service'; import { PinoLoggerService } from './logging/pino-logger-service'; @@ -68,17 +67,7 @@ export function getAppServices(): AppServices { logger.info('Notification service initialized (noop)'); // Create error reporting service (GlitchTip/Sentry or no-op) - const errors = sentryEnabled - ? new GlitchtipErrorReportingService( - { - enabled: true, - dsn: config.errors.glitchtip.dsn, - tracesSampleRate: 0.1, // Default to 10% sampling - }, - logger, - notifications, - ) - : new NoopErrorReportingService(); + const errors = new NoopErrorReportingService(); if (sentryEnabled) { logger.info(