@Override
    public boolean shouldFilter(HttpRequestMessage request) {

        DynamicBooleanProperty debugFilterShutoff =
                new DynamicBooleanProperty(ZuulConstants.ZUUL_DEBUGFILTERS_DISABLED, false);

        if (debugFilterShutoff.get()) {
            return false;
        }

        if (isDisabled()) {
            return false;
        }

        String isSurgicalFilterRequest = request.getHeaders().getFirst(ZuulHeaders.X_ZUUL_SURGICAL_FILTER);
        // don't apply filter if it was already applied
        boolean notAlreadyFiltered = !Objects.equals(isSurgicalFilterRequest, "true");

        return notAlreadyFiltered && patternMatches(request);
    }
Returning true by the pattern or logic implemented in this method will route the request to the specified origin

Override this method when using this filter to add your own pattern matching logic.

@return true if this request should be routed to the debug origin
zuul-core/src/main/java/com/netflix/zuul/filters/common/SurgicalDebugFilter.java