Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✅ 요약
🪄 변경사항
클라이언트 오류 추적에 용이한 센트리 SDK를 도입했습니다!
🎯 Sentry 초기 설정
tracesSampleRate: 0.1 => 성능(트랜잭션) 데이터 수집률 (10%)
replaysOnErrorSampleRate: 0.1 => 오류 발생 시 세션 리플레이 저장률 (10%)
replaysSessionSampleRate: 0 (비활성화) => 전체 세션 녹화는 비활성화 (비용 이슈로 인한 판단)
여기서 10%는 100명의 유저의 오류가 발생할 경우 10%의 유저 정보를 수집하도록 하는 범위설정입니다!
무료 버전을 사용하기 때문에 센트리 적용 경험용으로만 사용할 목적으로 10%만 받게 설정했습니다!
센트리는 전역에서 호출해 오류가 발생하는걸 실시간으로 감지할 수 있도록 했습니다!
추가로 Axios 응답 인터셉터에 Sentry 에러 캡처 로직을 추가하여, 로그인 과정 및 전체 API 요청 흐름에서 발생하는 예외를 모두 Sentry에 자동으로 전송하도록 구성했습니다.
추후에 센트리를 학습하면서 더 좋은 오류 추적 방법이 있다면 업데이트 하겠습니다!
🖼️ 결과 화면 (선택)
💬 리뷰어에게 전할 말 (선택)