未验证 提交 4ed21e1c 编写于 作者: G Gao Hongtao 提交者: GitHub

Filter endpoint with an id == 0 (#4105)

上级 4f80c5b7
......@@ -238,6 +238,10 @@ public class TelemetryDataDispatcher {
}
private static void toEndpoint(ServiceMeshMetricDataDecorator decorator, long minuteTimeBucket) {
if (decorator.getEndpointId() == Const.NONE) {
logger.warn("Received service mesh data {} with an id == 0", decorator);
return;
}
ServiceMeshMetric metrics = decorator.getMetric();
Endpoint endpoint = new Endpoint();
endpoint.setTimeBucket(minuteTimeBucket);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册