diff --git a/esp/src/src-react/util/metricGraph.ts b/esp/src/src-react/util/metricGraph.ts index 1aa7b0f1c0b..aa2a7514772 100644 --- a/esp/src/src-react/util/metricGraph.ts +++ b/esp/src/src-react/util/metricGraph.ts @@ -225,7 +225,10 @@ export class MetricGraph extends Graph2 { } vertexLabel(v: IScope, options: MetricsOptions): string { - return v.type === "activity" ? format(options.activityTpl, v) : v.Label || v.id; + return v.type === "activity" ? format(options.activityTpl, v) : + v.type === "function" ? v.id + "()" : + v.type === "stage" && v.id.charAt(0) === '>' ? v.id.substring(1) : + v.Label || v.id; } vertexStatus(v: IScope): ScopeStatus {