@@ -90,22 +90,16 @@ func (c *Client) Metrics(resources *Resources) ([]Metric, error) {
9090 Value : float64 (stepsTotal ),
9191 Unit : "" ,
9292 })
93+ pathsMetic := Metric {
94+ Key : "pipeline_resolver_execution_paths_total" ,
95+ Name : "Total number of pipeline resolver execution paths" ,
96+ Value : float64 (executionPathsTotal ),
97+ Unit : "" ,
98+ }
9399 if executionPathsTotal < 0 {
94- metrics = append (metrics , Metric {
95- Key : "pipeline_resolver_execution_paths_total" ,
96- Name : "Total number of pipeline resolver execution paths" ,
97- Value : float64 (executionPathsTotal ),
98- Unit : "" ,
99- Error : errors .New ("overflow detected" ),
100- })
101- } else {
102- metrics = append (metrics , Metric {
103- Key : "pipeline_resolver_execution_paths_total" ,
104- Name : "Total number of pipeline resolver execution paths" ,
105- Value : float64 (executionPathsTotal ),
106- Unit : "" ,
107- })
100+ pathsMetic .Error = errors .New ("overflow detected" )
108101 }
102+ metrics = append (metrics , pathsMetic )
109103
110104 // TailorDB Metrics
111105 metrics = append (metrics , Metric {
0 commit comments