private static Function<Integer, Publisher<InputStream>> zipkinServerStream( String zipkinUrl, Mono<HttpClient> client) { return lookbackSeconds -> client.flatMapMany( c -> c.doOnRequest( (__, connection) -> connection.addHandler(new JsonObjectDecoder(true))) .get() .uri(zipkinQuery(zipkinUrl, lookbackSeconds)) .responseContent() .asInputStream()); }
private static Function<Integer, Publisher<InputStream>> zipkinServerStream( String zipkinUrl, Mono<HttpClient> client) { return lookbackSeconds -> client.flatMapMany( c -> c.doOnRequest( (__, connection) -> connection.addHandler(new JsonObjectDecoder(true))) .get() .uri(zipkinQuery(zipkinUrl, lookbackSeconds)) .responseContent() .asInputStream()); }