Skip to content

Commit

Permalink
feat: add extraErrorDataIntegration
Browse files Browse the repository at this point in the history
  • Loading branch information
aube-dev committed Sep 19, 2024
1 parent e1f051e commit fd72176
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
2 changes: 2 additions & 0 deletions app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion app/models/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ export class Api<Variables, Result> {
};
}

// TODO: Sentry 등 에러 로깅 솔루션 추가
console.error(error, this, variables);
const apiError = new ApiError({
api: this,
Expand Down

0 comments on commit fd72176

Please sign in to comment.