Remove client side endpoint register of service mesh (#4054)
This commit is contained in:
parent
daabc1f5b6
commit
16d7782a5c
|
|
@ -95,24 +95,15 @@ public class ServiceMeshMetricDataDecorator {
|
|||
}
|
||||
String endpoint = origin.getEndpoint();
|
||||
|
||||
// Service mesh doesn't register client side endpoint.
|
||||
DetectPoint point = origin.getDetectPoint();
|
||||
if (DetectPoint.client.equals(point)) {
|
||||
if (sourceServiceId != Const.NONE) {
|
||||
endpointId = CoreRegisterLinker.getEndpointInventoryRegister().getOrCreate(sourceServiceId, endpoint,
|
||||
org.apache.skywalking.oap.server.core.source.DetectPoint.fromNetworkProtocolDetectPoint(point));
|
||||
}
|
||||
} else {
|
||||
if (DetectPoint.server.equals(point)) {
|
||||
if (destServiceId != Const.NONE) {
|
||||
endpointId = CoreRegisterLinker.getEndpointInventoryRegister().getOrCreate(destServiceId, endpoint,
|
||||
org.apache.skywalking.oap.server.core.source.DetectPoint.fromNetworkProtocolDetectPoint(point));
|
||||
}
|
||||
}
|
||||
|
||||
if (endpointId != Const.NONE) {
|
||||
} else {
|
||||
isRegistered = false;
|
||||
}
|
||||
|
||||
return isRegistered;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue