private void extractRequestInfoAndPutItIntoMappedDiagnosticContext ( final HttpRequest httpRequest ) { MDC . put ( REQUEST_URI , httpRequest . getUri ( ) ) ; MDC . put ( REQUEST_REMOTE_ADDRESS , httpRequest . getRemoteAddress ( ) ) ; MDC . put ( REQUEST_HTTP_METHOD , httpRequest . getMethod ( ) ) ; MDC . put ( REQUEST_ID , Long . toString ( httpRequest . getMessageId ( ) ) ) ; extractHeaders ( httpRequest ) ; }
Extract request data and put it into the logging Mapped Diagnostic Context .