private int inferEffectiveQueryTraceLevel(Query query) {
        return ((query.getTrace().getLevel() == 0) && shouldTraceQuery(query)) // Honor query's explicit trace level if present.
                ? tracingOptions.getTraceLevelOverride()
                : query.getTrace().getLevel();
    }
The route to the storage cluster.
container-search/src/main/java/com/yahoo/vespa/streamingvisitors/StreamingBackend.java