Skip to content

setting: p6spy, Micrometer Tracing 추가#78

Merged
wlgusqkr merged 4 commits intodevfrom
feat/#76
Jan 28, 2026
Merged

setting: p6spy, Micrometer Tracing 추가#78
wlgusqkr merged 4 commits intodevfrom
feat/#76

Conversation

@wlgusqkr
Copy link
Contributor

Related issue 🛠

어떤 변경사항이 있었나요?

  • 🐛 BugFix Something isn't working
  • 💻 CrossBrowsing Browser compatibility
  • 🌏 Deploy Deploy
  • 🎨 Design Markup & styling
  • 📃 Docs Documentation writing and editing (README.md, Swagger, etc.)
  • ✨ Feature Feature
  • 🔨 Refactor Code refactoring
  • ⚙️ Setting Development environment setup
  • ✅ Test Test related

Work Description ✏️

작업 내용을 작성해주세요.

  • 작업 내용

Uncompleted Tasks 😅

  • Task1

To Reviewers 📢

리뷰어가 알면 좋은 내용을 작성해주세요.

@wlgusqkr wlgusqkr linked an issue Jan 28, 2026 that may be closed by this pull request
@gemini-code-assist
Copy link

Summary of Changes

Hello @wlgusqkr, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 애플리케이션의 모니터링 및 디버깅 기능을 강화하기 위해 P6Spy, Micrometer Tracing, Sentry를 통합합니다. P6Spy를 통해 데이터베이스 쿼리 가시성을 높이고, Micrometer Tracing으로 분산 시스템에서의 요청 흐름 추적을 용이하게 합니다. 또한 Sentry를 연동하여 실시간 오류 보고 및 관리를 가능하게 하며, 기존 예외 처리 로깅을 구조화하고 상세 정보를 추가하여 문제 진단 효율성을 향상시켰습니다.

Highlights

  • P6Spy 통합: SQL 쿼리 로깅을 위한 P6Spy를 추가하고, 가독성 높은 형식으로 SQL을 출력하도록 커스텀 포맷터를 구현했습니다.
  • Micrometer Tracing 도입: Micrometer Tracing을 추가하여 분산 트레이싱 기능을 활성화하고, traceId/spanId 자동 생성을 지원합니다.
  • Sentry 연동: 오류 모니터링 및 보고를 위해 Sentry를 프로젝트에 통합했습니다.
  • 예외 처리 로깅 개선: GlobalExceptionHandler에서 예외 로깅 방식을 개선하여, traceId 및 구조화된 정보를 포함하도록 변경하고, 클라이언트 오류(4xx) 로깅 레벨을 WARN에서 INFO로 조정했습니다.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/cicd.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions
Copy link

Test Results

16 tests   16 ✅  3s ⏱️
 8 suites   0 💤
 8 files     0 ❌

Results for commit 6a9aa8e.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

이 Pull Request는 P6Spy, Micrometer Tracing, Sentry를 성공적으로 통합하여 데이터베이스 쿼리 로깅, 분산 트레이싱 및 오류 모니터링 기능을 강화했습니다. GlobalExceptionHandler에서 구조화된 로깅(kv 사용)을 도입하고 클라이언트 오류에 대한 로그 레벨을 조정한 것은 관측 가능성 및 로그 분석 측면에서 중요한 개선 사항입니다. 또한, FCMConfig에서 민감한 정보 로깅을 제거한 것은 좋은 보안 관행입니다.

http.server.requests: true
tracing:
sampling:
probability: 1.0

Choose a reason for hiding this comment

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

high

프로덕션 환경에서 management.tracing.sampling.probability1.0 (100%)으로 설정하면 모든 요청에 대한 트레이싱 데이터가 생성되어 성능 오버헤드와 비용 증가를 초래할 수 있습니다. 일반적으로 프로덕션에서는 샘플링 비율을 낮춰서 (예: 0.1 또는 0.01) 중요한 트레이스를 수집하고 오버헤드를 관리하는 것이 권장됩니다. Sentry의 traces-sample-rate도 동일하게 고려해야 합니다.

@wlgusqkr wlgusqkr merged commit 67da354 into dev Jan 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ [Feat] 모니터링 추가

1 participant