Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FE] 에러 트래킹을 위한 Sentry 환경 구축, 사용자 행동 분석을 위한 GA 환경 구축 #171

Merged
merged 4 commits into from
Aug 8, 2024

Conversation

hwinkr
Copy link
Contributor

@hwinkr hwinkr commented Aug 7, 2024

관련 이슈

작업 내용

1) 에러 트래킹을 위한 Sentry 환경 구축

image
  • 배포 환경에서 장애가 발생했을 때, 데이터를 수집하기 위해 사용할 Sentry 기본 환경을 구축했어요.
  • 디스코드 알람과 연동해서, 디스코드 모모 서버 🚨프론트엔드-에러로깅🚨 채널에 알람이 올 수 있도록 했어요.
  • 주의사항
    • 어떤 파일의 어떤 줄(L)에서 예외가 발생했는지 확인하기 위해서, source-map을 활용합니다.
    • 항상 배포 환경에서 사용하는 번들 js 파일을 난독화하는 source-map과 sentry에서 에러 트래킹에 사용하는 source-map이 싱크가 맞아야하는 것을 주의해야 합니다.
    • 그래서 앞으로 배포할 때 CD를 적용한다면, 해당 yml 파일에서 새롭게 번들링된 js 파일에 대한 source-map을 Sentry에 올리기 위한 job을 추가해야할 것 같아요!
    • 참고 : https://docs.sentry.io/platforms/javascript/sourcemaps/

2) 사용자 행동 분석을 위한 GA 환경 구축

image
  • 모모 서비스를 이용하는 사용자의 행동 분석을 위한 GA 환경을 구축했어요
  • index.html 파일에 Google Analytics에서 제공하는 스크립트 코드를 넣어서 등록했고, 최근 30분간 방문 사용자를 추적할 수 있음을 확인했습니다.
  • 앞으로 어떤 행동 지표를 중점적으로 분석할지 결정하고, 점진적으로 지표 수집을 해가야할 것 같아요!

특이 사항

리뷰 요구사항 (선택)

@hwinkr hwinkr added 🐈 프론트엔드 프론트엔드 관련 이슈에요 :) ⚙️ 환경설정 환경을 설정해요 :) 🏡 집 가고 싶음 솔직히 집에 가고 싶어요 :( labels Aug 7, 2024
@hwinkr hwinkr added this to the 3차 데모데이 milestone Aug 7, 2024
@hwinkr hwinkr requested a review from Yoonkyoungme as a code owner August 7, 2024 08:54
@hwinkr hwinkr requested a review from Largopie as a code owner August 7, 2024 08:54
Copy link

github-actions bot commented Aug 7, 2024

Test Results

5 tests   5 ✅  3s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit acfd743.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@Largopie Largopie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 따봉해리

Copy link
Contributor

@Yoonkyoungme Yoonkyoungme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

모두 모두 수고하셨습니다 🔮🍀🐪
해리 깔끔하게 잘 정리해줘서 고마워요 :)

@hwinkr hwinkr force-pushed the chore/168-sentry-ga branch from 4b12568 to 2e5d2f9 Compare August 8, 2024 07:44
@hwinkr hwinkr force-pushed the chore/168-sentry-ga branch from 2e5d2f9 to acfd743 Compare August 8, 2024 07:49
@hwinkr hwinkr merged commit 0666ab8 into develop Aug 8, 2024
5 checks passed
@Largopie Largopie deleted the chore/168-sentry-ga branch August 8, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙️ 환경설정 환경을 설정해요 :) 🏡 집 가고 싶음 솔직히 집에 가고 싶어요 :( 🐈 프론트엔드 프론트엔드 관련 이슈에요 :)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[FE] Sentry, GA를 사용한 프론트엔드 모니터링 시스템을 구축해요 :)
3 participants