File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,11 @@ func ResponseFormat(h http.Header) Format {
72
72
73
73
// NewDecoder returns a new decoder based on the given input format. Supported
74
74
// formats include delimited protobuf, text protos, and Prometheus text format.
75
- // This decoder does not fully support OpenMetrics although it may often succeed
76
- // due to the similarities between the formats. This decoder may not support the
77
- // latest features of Prometheus text format and is not intended for
78
- // high-performance applications. See:
75
+ // For historical reasons, this decoder fallbacks to classic text decoding for
76
+ // any other format. This decoder does not fully support OpenMetrics although it
77
+ // may often succeed due to the similarities between the formats. This decoder
78
+ // may not support the latest features of Prometheus text format and is not
79
+ // intended for high-performance applications. See:
79
80
// https://github.com/prometheus/common/issues/812
80
81
func NewDecoder (r io.Reader , format Format ) Decoder {
81
82
scheme := model .LegacyValidation
You can’t perform that action at this time.
0 commit comments