# Access-log format carrying request timing and the served hostname. # # Added 2026-10-16 because prod's logs could not answer a consumer's latency # question retrospectively: the built-in `combined` format records no time at # all, so "was it slow yesterday" had no evidence either way and the question # was unanswerable rather than merely unanswered. # # It is `combined` plus three fields APPENDED, never reshaped, so anything # already parsing the combined prefix keeps working byte-for-byte: # host= which hostname served it - prod has two serving different surfaces # (the customer-facing name at the root, and the original /rag mount), # and without this a line cannot be attributed to either # rt= $request_time, the whole request as nginx saw it, including the time # the client spent sending and receiving # urt= $upstream_response_time, what vectorapi took. The GAP between rt and # urt is the part a consumer cannot see from their side and is usually # the answer: a slow client or a large body, not a slow backend. # # urt is "-" when nothing was proxied (a redirect, a branded error page), which # is correct rather than zero - no upstream was asked. log_format timing '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" "$http_user_agent" ' 'host=$host rt=$request_time urt=$upstream_response_time';