From fd72176e5a92ed9902a83ffc965078f5a7dd653b Mon Sep 17 00:00:00 2001 From: aube-dev Date: Thu, 19 Sep 2024 23:14:56 +0900 Subject: [PATCH] feat: add `extraErrorDataIntegration` --- app/entry.client.tsx | 2 ++ app/entry.server.tsx | 2 ++ app/models/api.ts | 1 - 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/entry.client.tsx b/app/entry.client.tsx index 4a8aa9a..736654d 100644 --- a/app/entry.client.tsx +++ b/app/entry.client.tsx @@ -19,11 +19,13 @@ Sentry.init({ maskAllText: true, blockAllMedia: true, }), + Sentry.extraErrorDataIntegration(), ], replaysSessionSampleRate: 0.1, replaysOnErrorSampleRate: 1, environment: import.meta.env.SHARED_APP_MODE, + debug: import.meta.env.SHARED_APP_MODE === 'development', }); startTransition(() => { diff --git a/app/entry.server.tsx b/app/entry.server.tsx index fc15130..b78b0ff 100644 --- a/app/entry.server.tsx +++ b/app/entry.server.tsx @@ -13,6 +13,8 @@ Sentry.init({ tracesSampleRate: 1, autoInstrumentRemix: true, environment: import.meta.env.SHARED_APP_MODE, + debug: import.meta.env.SHARED_APP_MODE === 'development', + integrations: [Sentry.extraErrorDataIntegration()], }); export const handleError = Sentry.sentryHandleError; diff --git a/app/models/api.ts b/app/models/api.ts index b159b42..4cddacc 100644 --- a/app/models/api.ts +++ b/app/models/api.ts @@ -228,7 +228,6 @@ export class Api { }; } - // TODO: Sentry 등 에러 로깅 솔루션 추가 console.error(error, this, variables); const apiError = new ApiError({ api: this,