-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Milestone
Description
defer metrics.ObserveFederatedHPAPullMetricsLatency(err, "ResourceMetric", startTime) |
defer metrics.ObserveFederatedHPAPullMetricsLatency(err, "RawMetric", startTime) |
defer metrics.ObserveFederatedHPAPullMetricsLatency(err, "ObjectMetric", startTime) |
defer metrics.ObserveFederatedHPAPullMetricsLatency(err, "ExternalMetric", startTime) |
defer metrics.ObserveProcessFederatedHPALatency(err, startTime) |
The defer statement has already assigned a value to the function's parameters when it is declared. Therefore, the value of the err parameter is always nil when the metrics function is executed. Regardless of whether the actual execution result is "success" or "error", the metrics record is always "success".
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Type
Projects
Status
No status