Skip to content

[feat] PB-117 TRACE-1 (2/2) HTTP ingress Trace 계약 - #237

Merged
geonusp merged 2 commits into
mainfrom
feature/trace-http
Aug 21, 2026
Merged

geonusp merged 2 commits into
mainfrom
feature/trace-http

Conversation

@PHJ2000

@PHJ2000 PHJ2000 commented Aug 13, 2026 •

Copy link
Copy Markdown
Collaborator

✨ Feature PR

🔗 이슈 링크 (필수)


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

전체 중 위치

이 PR에서 변경한 것

  • W3C-only ContextPropagators를 명시해 실제 HTTP ingress에서 traceparent/tracestate를 소비·생성
  • baggage 전파를 비활성화해 고유값과 민감정보가 전파되는 범위를 차단
  • MdcRequestFilter를 HTTP observation 안쪽으로 이동해 requestId와 실제 traceId/spanId가 요청 처리 동안 공존
  • Spring MVC 자동 http.server.requests span의 200·401·400·500 status/outcome 계약 문서화
  • 임베디드 서버와 in-memory exporter를 사용한 실제 HTTP 통합 테스트 추가

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

Covers

  • AC1: HTTP 요청의 실제 traceId/spanId 생성과 requestId 로그 상관관계 공존
  • AC2: W3C remote parent 연결과 신규 trace 생성
  • AC3: HTTP 성공·인증 실패·4xx·5xx status/outcome 및 기존 X-Request-Id 계약 유지
  • AC5: query string, Authorization, requestId/userId를 span attribute로 수집하지 않음

Not covered


🧪 테스트 결과 (필수)

로컬 (최신 main 직계 HEAD eb4a98b7)

./gradlew test --tests '*HttpIngressTracingIntegrationTest' --tests '*TracingCoreConfigurationTest' --tests '*MdcRequestFilterTest' --tests '*DtoLoggingCatalogTest' --no-daemon --stacktrace
./gradlew check --no-daemon --stacktrace
  • ✅ targeted 테스트 성공
  • ✅ 전체 285 tests, failures 0, errors 0, skipped 0
  • ✅ checkstyle/spotless/JaCoCo 포함 BUILD SUCCESSFUL

CI

Smoke 테스트

  • traceparent 없는 실제 HTTP 요청 → 신규 server trace와 requestId/Trace MDC 공존
  • W3C traceparent 포함 요청 → 동일 traceId와 remote parentSpanId 유지
  • 200·401·400·500 응답 → status와 bounded outcome 구분
  • query·Authorization·requestId → exported span attribute 비수집
  • ✅ 임베디드 서버 + in-memory OTel exporter 통과
  • dev Tempo/Grafana 조회는 [feat] PB-117 TRACE-1 공통 Trace 계약·HTTP ingress 구축 #228 runtime Gate에서 검증

🧭 영향 범위 체크 (필수)

  • API 변경
  • DB 변경
  • 설정 변경 (W3C ContextPropagators, baggage 비활성화, requestId filter order)
  • Breaking change

💬 리뷰 포인트 (필수)

  • 집중 파일: W3cTracePropagationConfig, MdcRequestFilter, HttpIngressTracingIntegrationTest, TRACING_CONTRACT.md
  • Spring Boot 기본 propagator 선택에만 의존했을 때 실제 Propagator.fields()가 비어 traceparent가 무시되는 것을 통합 테스트로 확인했고, 애플리케이션 계약을 W3C-only로 고정했다.
  • PR [feat] PB-117 TRACE-1 (1/2) 공통 Trace 기반 구성 #236 squash 병합 후 최신 main의 직계 단일 커밋으로 이력을 정리했으며, 최종 diff는 HTTP ingress 범위 5개 파일만 포함한다.

@coderabbitai

coderabbitai Bot commented Aug 13, 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: 931b2487-d29d-4f15-8aa4-2670b0396f12

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 changed the title [feat] PB-117 (2/5) HTTP ingress Trace 계약 [feat] PB-117 TRACE-1 (2/2) HTTP ingress Trace 계약 Aug 14, 2026
@PHJ2000
PHJ2000 changed the base branch from feature/trace-core to main August 16, 2026 11:33
@PHJ2000
PHJ2000 marked this pull request as ready for review August 16, 2026 11:36
@PHJ2000
PHJ2000 marked this pull request as draft August 16, 2026 13:09
@geonusp
geonusp marked this pull request as ready for review August 18, 2026 08:45
@PHJ2000
PHJ2000 force-pushed the feature/trace-http branch from 0bad8ec to 4297074 Compare August 18, 2026 09:01
@PHJ2000
PHJ2000 force-pushed the feature/trace-http branch from 4297074 to eb4a98b Compare August 18, 2026 09:14

@geonusp geonusp left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

수고하셨습니다!

@geonusp
geonusp merged commit 93d5add into main Aug 21, 2026
3 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