Skip to content

Commit f61e6f6

Browse files
committed
note
Signed-off-by: Owen Williams <[email protected]>
1 parent b6dc9a8 commit f61e6f6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

expfmt/decode.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
8081
func NewDecoder(r io.Reader, format Format) Decoder {
8182
scheme := model.LegacyValidation

0 commit comments

Comments
 (0)