File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ func (ec encoderCloser) Close() error {
61
61
// appropriate accepted type is found, FmtText is returned (which is the
62
62
// Prometheus text format). This function will never negotiate FmtOpenMetrics,
63
63
// as the support is still experimental. To include the option to negotiate
64
- // FmtOpenMetrics, use NegotiateOpenMetrics .
64
+ // FmtOpenMetrics, use NegotiateIncludingOpenMetrics .
65
65
func Negotiate (h http.Header ) Format {
66
66
escapingScheme := Format (fmt .Sprintf ("; escaping=%s" , Format (model .NameEscapingScheme .String ())))
67
67
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) {
99
99
}
100
100
}
101
101
102
- func TestNegotiateOpenMetrics (t * testing.T ) {
102
+ func TestNegotiateIncludingOpenMetrics (t * testing.T ) {
103
103
acceptValuePrefix := "application/vnd.google.protobuf;proto=io.prometheus.client.MetricFamily"
104
104
tests := []struct {
105
105
name string
You can’t perform that action at this time.
0 commit comments