prometheus/model
beorn7 e9d9bb1b08 textparse: Handle unknown metric types in protobuf gracefully
So far, the parser hasn't validated that the type is valid in the
`Next()` call. Later, in the `Series()` call, however, it assumes that
we will only see valid types and therefore panics with `encountered
unexpected metric type, this is a bug`.

This commit fixes said bug by adding validation to the `Next()` call.

Signed-off-by: beorn7 <beorn@grafana.com>
2023-01-05 15:21:18 +01:00
..
exemplar Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
histogram Support FloatHistogram in TSDB (#11522) 2022-12-28 14:25:07 +05:30
labels Simplify IndexReader.Series interface 2022-12-19 15:22:09 +00:00
metadata Introduce TSDB changes for appending metadata to the WAL (#10972) 2022-07-19 10:58:52 +02:00
relabel Update package model/relabel tests for new labels.Labels type 2022-12-19 15:22:09 +00:00
rulefmt delete redundant alias (#11180) 2022-08-31 15:50:38 +02:00
textparse textparse: Handle unknown metric types in protobuf gracefully 2023-01-05 15:21:18 +01:00
timestamp Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
value Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00