Endpoint register to client and server side based on detect point. (#1866)
This commit is contained in:
parent
6b1014c336
commit
75e4c67952
|
|
@ -88,8 +88,14 @@ public class ServiceMeshMetricDataDecorator {
|
|||
if (destServiceId != Const.NONE) {
|
||||
DetectPoint point = origin.getDetectPoint();
|
||||
|
||||
endpointId = CoreRegisterLinker.getEndpointInventoryRegister().getOrCreate(destServiceId, endpoint,
|
||||
org.apache.skywalking.oap.server.core.source.DetectPoint.fromMeshDetectPoint(point));
|
||||
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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue