chore(sentry): change ExtraErrorData to extraErrorDataIntegration

This commit is contained in:
Nicolas Meienberger 2024-03-06 08:24:05 +01:00
parent 30c5999ca2
commit de7475f387
4 changed files with 8 additions and 8 deletions

View File

@ -5,7 +5,7 @@ import Redis from 'ioredis';
import dotenv from 'dotenv';
import { Queue } from 'bullmq';
import * as Sentry from '@sentry/node';
import { ExtraErrorData } from '@sentry/integrations';
import { extraErrorDataIntegration } from '@sentry/integrations';
import { serve } from '@hono/node-server';
import { Hono } from 'hono';
import { copySystemFiles, generateSystemEnvFile, generateTlsCertificates } from '@/lib/system';
@ -33,7 +33,7 @@ const setupSentry = (release?: string) => {
new Sentry.Integrations.LocalVariables({
captureAllExceptions: true,
}),
new ExtraErrorData(),
extraErrorDataIntegration(),
],
});
};

View File

@ -1,6 +1,6 @@
import * as Sentry from '@sentry/nextjs';
import { ExtraErrorData } from '@sentry/integrations';
import { settingsSchema, cleanseErrorData } from '@runtipi/shared';
import { extraErrorDataIntegration } from '@sentry/integrations';
const getClientConfig = () => {
if (typeof window === 'undefined') {
@ -26,7 +26,7 @@ if (allowErrorMonitoring && process.env.NODE_ENV === 'production') {
environment: process.env.NODE_ENV,
dsn: 'https://7a73d72f886948478b55621e7b92c3c7@o4504242900238336.ingest.sentry.io/4504826587971584',
beforeSend: cleanseErrorData,
integrations: [new ExtraErrorData()],
integrations: [extraErrorDataIntegration()],
initialScope: {
tags: { version: process.env.TIPI_VERSION },
},

View File

@ -5,8 +5,8 @@
import * as Sentry from '@sentry/nextjs';
import { TipiConfig } from '@/server/core/TipiConfig';
import { ExtraErrorData } from '@sentry/integrations';
import { cleanseErrorData } from '@runtipi/shared';
import { extraErrorDataIntegration } from '@sentry/integrations';
const { version, allowErrorMonitoring, NODE_ENV } = TipiConfig.getConfig();
@ -16,7 +16,7 @@ if (allowErrorMonitoring && NODE_ENV === 'production') {
environment: NODE_ENV,
dsn: 'https://7a73d72f886948478b55621e7b92c3c7@o4504242900238336.ingest.sentry.io/4504826587971584',
beforeSend: cleanseErrorData,
integrations: [new ExtraErrorData()],
integrations: [extraErrorDataIntegration()],
initialScope: {
tags: { version },
},

View File

@ -3,9 +3,9 @@
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
import * as Sentry from '@sentry/nextjs';
import { ExtraErrorData } from '@sentry/integrations';
import { TipiConfig } from '@/server/core/TipiConfig';
import { cleanseErrorData } from '@runtipi/shared';
import { extraErrorDataIntegration } from '@sentry/integrations';
const { version, allowErrorMonitoring, NODE_ENV } = TipiConfig.getConfig();
@ -15,7 +15,7 @@ if (allowErrorMonitoring && NODE_ENV === 'production') {
environment: NODE_ENV,
dsn: 'https://7a73d72f886948478b55621e7b92c3c7@o4504242900238336.ingest.sentry.io/4504826587971584',
beforeSend: cleanseErrorData,
integrations: [new ExtraErrorData()],
integrations: [extraErrorDataIntegration()],
initialScope: {
tags: { version },
},