Fix query `getGlobalTopology` throw exception when didn't find any services by the given Layer. (#12609)
This commit is contained in:
parent
1ff0c57073
commit
a71d7ef1f8
|
|
@ -61,6 +61,7 @@
|
||||||
* Update the endpoint name format to `<Method>:<Path>` in eBPF Access Log Receiver.
|
* Update the endpoint name format to `<Method>:<Path>` in eBPF Access Log Receiver.
|
||||||
* Add self-observability metrics for OpenTelemetry receiver.
|
* Add self-observability metrics for OpenTelemetry receiver.
|
||||||
* Support service level metrics aggregate when missing pod context in eBPF Access Log Receiver.
|
* Support service level metrics aggregate when missing pod context in eBPF Access Log Receiver.
|
||||||
|
* Fix query `getGlobalTopology` throw exception when didn't find any services by the given Layer.
|
||||||
|
|
||||||
#### UI
|
#### UI
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -130,6 +130,9 @@ public class TopologyQueryService implements Service {
|
||||||
span = traceContext.createSpan("Query Service: getServiceTopology");
|
span = traceContext.createSpan("Query Service: getServiceTopology");
|
||||||
span.setMsg("Duration: " + duration + ", ServiceIds: " + serviceIds);
|
span.setMsg("Duration: " + duration + ", ServiceIds: " + serviceIds);
|
||||||
}
|
}
|
||||||
|
if (CollectionUtils.isEmpty(serviceIds)) {
|
||||||
|
return new Topology();
|
||||||
|
}
|
||||||
return invokeGetServiceTopology(duration, serviceIds);
|
return invokeGetServiceTopology(duration, serviceIds);
|
||||||
} finally {
|
} finally {
|
||||||
if (traceContext != null && span != null) {
|
if (traceContext != null && span != null) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue