File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 .
6565func 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 )) {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments