未验证 提交 2a031dae 编写于 作者: G Gao Hongtao 提交者: GitHub

Fix histogram labels are absent (#5173)

上级 3a00d847
......@@ -116,6 +116,7 @@ public class Context {
Histogram.HistogramBuilder hBuilder = Histogram.builder();
hBuilder.name(name).timestamp(now);
samples.forEach(textSample -> {
hBuilder.labels(textSample.getLabels());
if (textSample.getName().endsWith("_count")) {
hBuilder.sampleCount((long) convertStringToDouble(textSample.getValue()));
} else if (textSample.getName().endsWith("_sum")) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册