Skip to content

[feat] PB-117 TRACE-1 (1/2) 공통 Trace 기반 구성 - #236

Merged
geonusp merged 4 commits into
mainfrom
feature/trace-core
Aug 14, 2026
Merged

geonusp merged 4 commits into
mainfrom
feature/trace-core

Conversation

@PHJ2000

@PHJ2000 PHJ2000 commented Aug 12, 2026 •

Copy link
Copy Markdown
Collaborator

✨ Feature PR

🔗 이슈 링크 (필수)


🧩 이 PR의 변경사항 (필수)

전체 중 위치 (Stacked PR 시)

이 PR에서 변경한 것

  • Micrometer Tracing OpenTelemetry bridge와 OTLP exporter 의존성 추가
  • W3C propagation, sampling, OTLP endpoint·timeout, service/resource attribute 설정
  • 실제 traceId/spanId를 dev·prod 로그 MDC와 연결
  • 실제 Trace Context 없이 @Async worker에 traceId/spanId 문자열만 복사되는 동작 차단
  • PII·고카디널리티 수집 금지와 수집 중지 계약 문서화
  • endpoint 미설정/설정 및 sampling=0.0 수집 중지 설정 테스트 추가

✅ 이 PR이 커버하는 AC (필수)

Covers

  • AC1 일부: 실제 traceId/spanId 생성과 MDC 로그 연결 공통 기반
  • AC4: sampling·OTLP endpoint 환경 제어, endpoint 미설정 시 exporter 미구성
  • AC5 일부: 공통 PII·cardinality 수집 금지 계약

Not covered


🧪 테스트 결과 (필수)

로컬

./gradlew check
SPRING_PROFILES_ACTIVE=test ./gradlew test assemble jacocoTestReport --no-daemon --stacktrace
  • ✅ 모두 BUILD SUCCESSFUL

CI

  • ✅ Backend Build & Test (Unit + Integration) 통과

Smoke 테스트

  • endpoint 미설정 상태에서 Tracer/MDC 생성 및 exporter 미구성 확인
  • endpoint·timeout·sampling 주입 시 설정 바인딩 및 exporter 구성 확인
  • endpoint 미설정 + sampling 0.0에서 exporter 미구성 확인
  • ✅ TracingCoreConfigurationTest 통과
  • 실제 OTLP 수집기 장애·timeout·drop은 [feat] PB-117 TRACE-1 공통 Trace 계약·HTTP ingress 구축 #228 runtime Gate에서 검증

🧭 영향 범위 체크 (필수)

  • API 변경
  • DB 변경
  • 설정 변경 (sampling, W3C propagation, OTLP endpoint·timeout, resource attribute)
  • Breaking change

💬 리뷰 포인트 (필수)

  • 집중 파일: application.yml, TracingCoreConfigurationTest, MdcTaskDecorator, TRACING_CONTRACT.md
  • 기본 환경에서는 OTLP endpoint를 선언하지 않아 exporter를 만들지 않는다. 긴급 수집 중지는 endpoint 제거와 sampling 0.0을 함께 적용한다.

@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 7fef4bac-acec-4ed8-bb1e-ce5cd31cd0d8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@PHJ2000
PHJ2000 requested a review from geonusp August 12, 2026 14:55
@PHJ2000 PHJ2000 self-assigned this Aug 12, 2026
@PHJ2000 PHJ2000 changed the title PB-117 공통 Trace 기반 구성 [feat] PB-117 (1/5) 공통 Trace 기반 구성 Aug 12, 2026
@PHJ2000
PHJ2000 marked this pull request as ready for review August 12, 2026 15:09
@PHJ2000 PHJ2000 changed the title [feat] PB-117 (1/5) 공통 Trace 기반 구성 [feat] PB-117 TRACE-1 (1/2) 공통 Trace 기반 구성 Aug 14, 2026
@geonusp

geonusp commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

수고하셨습니다!

@geonusp
geonusp merged commit 694f902 into main Aug 14, 2026
2 checks 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.

2 participants