Trace View: critical path highlight

Grafana has a nice feature of highlighting a critical path in a trace. But sometimes, it’s just completely off: it would for some reason just put the longest top segment on critical path which is not informative at all. Example:

is this an issue with Grafana (which I should raise a ticket for) or just something wrong with my understanding as to how it should work?