request trace

느린 요청은 ingress부터 dependency까지 시간 조각으로 분해한다

하나의 요청 시간을 경계별로 쪼개야 handler 코드, DB, 외부 API, 런타임 중 어디서 늦는지 보인다.

Client
request

URL과 payload

wait

전체 응답 대기

response

status와 body

retry?

timeout 기준

Nest
guard/pipe

검증과 변환

handler

controller/service

interceptor

timing 기록

exception

오류 변환

Dependency
DB

query와 pool wait

API

외부 왕복

CPU

JSON/crypto

log

상관 id

Ingress

요청 크기 큼 · access log · payload 제한

DB

pool wait · query metric · index, batching

Runtime

loop delay · Clinic · 동기 코드 제거