Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metrics: assign histogram metric type on histogram construction
This commit assigns prometheusgo.MetricType_HISTOGRAM to the Metadata.MetricType on histogram construction. Before this change, GetMetadata() was returning the Metadata.MetricType zero value (prometheusgo.MetricType_COUNTER) for all histograms that did not explicitly specify the prometheusgo.MetricType_HISTOGRAM for Metadata.MetricType in their Metadata definitions. This prevented checks on histogram Metadata.MetricType from properly evaluating the metrics as histograms. Fixes cockroachdb#106448. Fixes cockroachdb#107701. Releaes note: None
- Loading branch information