qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java
private Interceptors configureInterceptors() {
        Interceptors interceptors = new Interceptors();
        SetupMdcForHttpRequestInterceptor setupMdcForHttpRequestInterceptor;
        if (enableLoggingMappedDiagnosticContext) {
            enableRequestChain = true;
            if (requestHeadersToTrackForMappedDiagnosticContext != null &&
                    requestHeadersToTrackForMappedDiagnosticContext.size() > 0) {
                setupMdcForHttpRequestInterceptor =
                        new SetupMdcForHttpRequestInterceptor(requestHeadersToTrackForMappedDiagnosticContext);
            } else {
                setupMdcForHttpRequestInterceptor = new SetupMdcForHttpRequestInterceptor(Collections.emptySet());
            }
            interceptors.before.add(setupMdcForHttpRequestInterceptor);
            interceptors.after.add(setupMdcForHttpRequestInterceptor);
        }

        if (enableRequestChain) {
            final CaptureRequestInterceptor captureRequestInterceptor = new CaptureRequestInterceptor();
            interceptors.before.add(captureRequestInterceptor);
            interceptors.after.add(captureRequestInterceptor);
            interceptors.beforeSent.add(new ForwardCallMethodInterceptor(new RequestContext()));
        }
        return interceptors;
    }
private Interceptors configureInterceptors() {
        Interceptors interceptors = new Interceptors();
        SetupMdcForHttpRequestInterceptor setupMdcForHttpRequestInterceptor;
        if (enableLoggingMappedDiagnosticContext) {
            enableRequestChain = true;
            if (requestHeadersToTrackForMappedDiagnosticContext != null &&
                    requestHeadersToTrackForMappedDiagnosticContext.size() > 0) {
                setupMdcForHttpRequestInterceptor =
                        new SetupMdcForHttpRequestInterceptor(requestHeadersToTrackForMappedDiagnosticContext);
            } else {
                setupMdcForHttpRequestInterceptor = new SetupMdcForHttpRequestInterceptor(Collections.emptySet());
            }
            interceptors.before.add(setupMdcForHttpRequestInterceptor);
            interceptors.after.add(setupMdcForHttpRequestInterceptor);
        }

        if (enableRequestChain) {
            final CaptureRequestInterceptor captureRequestInterceptor = new CaptureRequestInterceptor();
            interceptors.before.add(captureRequestInterceptor);
            interceptors.after.add(captureRequestInterceptor);
            interceptors.beforeSent.add(new ForwardCallMethodInterceptor(new RequestContext()));
        }
        return interceptors;
    }
private Interceptors configureInterceptors ( ) { Interceptors interceptors = new Interceptors ( ) ; SetupMdcForHttpRequestInterceptor setupMdcForHttpRequestInterceptor ; if ( enableLoggingMappedDiagnosticContext ) { enableRequestChain = true ; if ( requestHeadersToTrackForMappedDiagnosticContext != null && requestHeadersToTrackForMappedDiagnosticContext . size ( ) > 0 ) { setupMdcForHttpRequestInterceptor = new SetupMdcForHttpRequestInterceptor ( requestHeadersToTrackForMappedDiagnosticContext ) ; } else { setupMdcForHttpRequestInterceptor = new SetupMdcForHttpRequestInterceptor ( Collections . emptySet ( ) ) ; } interceptors . before . add ( setupMdcForHttpRequestInterceptor ) ; interceptors . after . add ( setupMdcForHttpRequestInterceptor ) ; } if ( enableRequestChain ) { final CaptureRequestInterceptor captureRequestInterceptor = new CaptureRequestInterceptor ( ) ; interceptors . before . add ( captureRequestInterceptor ) ; interceptors . after . add ( captureRequestInterceptor ) ; interceptors . beforeSent . add ( new ForwardCallMethodInterceptor ( new RequestContext ( ) ) ) ; } return interceptors ; }
Configure a list of common interceptors.

@return interceptors.
Configure a list of common interceptors .