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 before returning metadata
This commit assigns prometheusgo.MetricType_HISTOGRAM to the Metadata.MetricType in Histogram.GetMetadata. 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 #106448. Fixes #107701. Releaes note: None
- Loading branch information