提交 75e4c679 编写于 作者: wu-sheng's avatar wu-sheng 提交者: 彭勇升 pengys

Endpoint register to client and server side based on detect point. (#1866)

上级 6b1014c3
......@@ -88,8 +88,14 @@ public class ServiceMeshMetricDataDecorator {
if (destServiceId != Const.NONE) {
DetectPoint point = origin.getDetectPoint();
if (DetectPoint.client.equals(point)) {
endpointId = CoreRegisterLinker.getEndpointInventoryRegister().getOrCreate(sourceServiceId, endpoint,
org.apache.skywalking.oap.server.core.source.DetectPoint.fromMeshDetectPoint(point));
} else {
endpointId = CoreRegisterLinker.getEndpointInventoryRegister().getOrCreate(destServiceId, endpoint,
org.apache.skywalking.oap.server.core.source.DetectPoint.fromMeshDetectPoint(point));
}
if (endpointId != Const.NONE) {
} else {
isRegistered = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册