qbit/core/src/main/java/io/advantageous/qbit/logging/SetupMdcForHttpRequestInterceptor.java
@Override
    public boolean before(final MethodCall methodCall) {

        final Optional<HttpRequest> httpRequest = findHttpRequest(methodCall);
        if (httpRequest.isPresent()) {
            extractRequestInfoAndPutItIntoMappedDiagnosticContext(httpRequest.get());
        }
        return true;
    }
@Override
    public boolean before(final MethodCall methodCall) {

        final Optional<HttpRequest> httpRequest = findHttpRequest(methodCall);
        if (httpRequest.isPresent()) {
            extractRequestInfoAndPutItIntoMappedDiagnosticContext(httpRequest.get());
        }
        return true;
    }
@ Override public boolean before ( final MethodCall methodCall ) { final Optional < HttpRequest > httpRequest = findHttpRequest ( methodCall ) ; if ( httpRequest . isPresent ( ) ) { extractRequestInfoAndPutItIntoMappedDiagnosticContext ( httpRequest . get ( ) ) ; } return true ; }
Gets called before a method gets invoked on a service.
This adds request URI, remote address and request headers of the HttpRequest if found.

@param methodCall methodCall
@return true to continue, always true.
Gets called before a method gets invoked on a service . This adds request URI remote address and request headers of the HttpRequest if found .