未验证 提交 93468c96 编写于 作者: J Jiajing LU 提交者: GitHub

Merge branch 'master' into optimize-banyandb-measure-integration

......@@ -29,6 +29,7 @@
* Remove abandon logic in MergableBufferedData, which caused unexpected no-update.
* Fix miss set `LastUpdateTimestamp` that caused the metrics session to expire.
* Rename MAL rule `spring-sleuth.yaml` to `spring-micrometer.yaml`.
* Fix memory leak in Zipkin API.
#### UI
......
......@@ -100,10 +100,11 @@ public class ZipkinSpanHTTPHandler {
final HttpRequest req) {
final HistogramMetrics.Timer timer = histogram.createTimer();
final HttpResponse response = HttpResponse.from(req.aggregate().thenApply(request -> {
final HttpData httpData = UnzippingBytesRequestConverter.convertRequest(ctx, request);
final List<Span> spanList = decoder.decodeList(httpData.byteBuf().nioBuffer());
spanForward.send(spanList);
return HttpResponse.of(HttpStatus.OK);
try (final HttpData httpData = UnzippingBytesRequestConverter.convertRequest(ctx, request)) {
final List<Span> spanList = decoder.decodeList(httpData.byteBuf().nioBuffer());
spanForward.send(spanList);
return HttpResponse.of(HttpStatus.OK);
}
}));
response.whenComplete().handle((unused, throwable) -> {
if (nonNull(throwable)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册