You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
util/metric: allowed nils in arrays of MetricStruct implementations
It is useful to have arrays of structs just like it is useful to have arrays
of values when there are enums. In the face of enums, zero is often an
uninteresting value and we do not want to instantiate metrics for it. In this
case of individual metrics, this was achieved by leaving the entry nil. This
was not permitted in structs and would lead to panics. This commit fixes that.
Release note: None
0 commit comments