@Override
    public Result search(Query query, Execution execution) {
        Point dims = latencyGauge.builder()
                .set("chain", execution.chain().getId().stringValue())
                .build();
        latencyGauge.sample(query.getDurationTime(), dims);
        return execution.search(query);
    }
Measure latency in container before query is sent to backend

@author Arne H Juul
container-search/src/main/java/com/yahoo/search/searchers/ContainerLatencySearcher.java