Skip to content

[gateway] 접근 로그 JSON 출력과 요청 추적 MDC 추가 - #14

Open
jyx-07 wants to merge 3 commits into
feat/gateway-request-sanitizefrom
feat/gateway-access-log
Open

jyx-07 wants to merge 3 commits into
feat/gateway-request-sanitizefrom
feat/gateway-access-log

Conversation

@jyx-07

@jyx-07 jyx-07 commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

개요

로그를 JSON 한 줄로 남기고, 요청 추적 값(requestId, userId, clientIp)을 MDC로 이어 Grafana 등에서 필드로 검색할 수 있게 합니다.

본문

  • Spring Boot 내장 structured logging(logstash 형식)으로 stdout JSON 출력
  • 접근 로그에 clientIp, routeId 추가, 각 값을 JSON 필드로 기록
  • Reactor context propagation으로 요청 처리 중 남긴 로그에도 MDC 전달
  • WebFilter 체인 밖인 GlobalErrorHandler 로그도 같은 MDC를 갖도록 처리

#10 → #12 → #13 → 이 PR 순서로 머지해 주세요.

@jyx-07
jyx-07 force-pushed the feat/gateway-access-log branch from 146f834 to c529aa7 Compare November 3, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Feature 신규 기능

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant