Fix: set request id in trace context properly (#17622)

This commit is contained in:
Aditya Manthramurthy 2023-07-10 15:40:44 -07:00 committed by GitHub
parent bd6842d917
commit 43b3c093ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ func httpTracerMiddleware(h http.Handler) http.Handler {
// Create tracing data structure and associate it to the request context
tc := mcontext.TraceCtxt{
AmzReqID: r.Header.Get(xhttp.AmzRequestID),
AmzReqID: w.Header().Get(xhttp.AmzRequestID),
RequestRecorder: reqRecorder,
ResponseRecorder: respRecorder,
}