Skip to content

Commit

Permalink
HPCC-29790 Improve the formatting of functions and stage scopes in ec…
Browse files Browse the repository at this point in the history
…lwatch

Signed-off-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday committed Jan 19, 2024
1 parent 0eefc47 commit eb65091
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion esp/src/src-react/util/metricGraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ export class MetricGraph extends Graph2<IScope, IScopeEdge, IScope> {
}

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 {
Expand Down

0 comments on commit eb65091

Please sign in to comment.