@Override
    public HttpRequestMessage apply(HttpRequestMessage request) {
        request.getContext().setDebugRequest(true);
        request.getContext().setDebugRouting(true);

        return request;
    }
Determine if requests need to be debugged.

In order to test this, set query parameter "debugRequest=true"

Author: Arthur Gonigberg
Date: December 22, 2017
zuul-sample/src/main/java/com/netflix/zuul/sample/filters/Debug.java