Skip to content

Commit 01383ba

Browse files
authored
Merge pull request #813 from wmcram/negotiate-typo
docs: fix typo in expfmt.Negotiate
2 parents 0ad974f + 30ca184 commit 01383ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

expfmt/encode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (ec encoderCloser) Close() error {
6161
// appropriate accepted type is found, FmtText is returned (which is the
6262
// Prometheus text format). This function will never negotiate FmtOpenMetrics,
6363
// as the support is still experimental. To include the option to negotiate
64-
// FmtOpenMetrics, use NegotiateOpenMetrics.
64+
// FmtOpenMetrics, use NegotiateIncludingOpenMetrics.
6565
func Negotiate(h http.Header) Format {
6666
escapingScheme := Format(fmt.Sprintf("; escaping=%s", Format(model.NameEscapingScheme.String())))
6767
for _, ac := range goautoneg.ParseAccept(h.Get(hdrAccept)) {

expfmt/encode_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func TestNegotiate(t *testing.T) {
9999
}
100100
}
101101

102-
func TestNegotiateOpenMetrics(t *testing.T) {
102+
func TestNegotiateIncludingOpenMetrics(t *testing.T) {
103103
acceptValuePrefix := "application/vnd.google.protobuf;proto=io.prometheus.client.MetricFamily"
104104
tests := []struct {
105105
name string

0 commit comments

Comments
 (0)