File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,10 +72,11 @@ func ResponseFormat(h http.Header) Format {
7272
7373// NewDecoder returns a new decoder based on the given input format. Supported
7474// 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:
7980// https://github.com/prometheus/common/issues/812
8081func NewDecoder (r io.Reader , format Format ) Decoder {
8182 scheme := model .LegacyValidation
You can’t perform that action at this time.
0 commit comments