File tree 1 file changed +13
-13
lines changed
internal/ingress/metric/collectors
1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -100,16 +100,16 @@ var requestTags = []string{
100
100
}
101
101
102
102
var validHTTPMethods = []string {
103
- // Unless otherwise noted, these are defined in RFC 7231 section 4.3.
104
- "GET" ,
105
- "HEAD" ,
106
- "POST" ,
107
- "PUT" ,
108
- "PATCH" , // RFC 5789
109
- "DELETE" ,
110
- "CONNECT" ,
111
- "OPTIONS" ,
112
- "TRACE" ,
103
+ // Unless otherwise noted, these are defined in RFC 7231 section 4.3.
104
+ "GET" ,
105
+ "HEAD" ,
106
+ "POST" ,
107
+ "PUT" ,
108
+ "PATCH" , // RFC 5789
109
+ "DELETE" ,
110
+ "CONNECT" ,
111
+ "OPTIONS" ,
112
+ "TRACE" ,
113
113
}
114
114
115
115
// NewSocketCollector creates a new SocketCollector instance using
@@ -330,9 +330,9 @@ func (sc *SocketCollector) handleMessage(msg []byte) {
330
330
if sc .reportStatusClasses && stats .Status != "" {
331
331
stats .Status = fmt .Sprintf ("%cxx" , stats .Status [0 ])
332
332
}
333
- if ! slices .Contains (validHTTPMethods , stats .Method ) {
334
- stats .Method = "invalid_method"
335
- }
333
+ if ! slices .Contains (validHTTPMethods , stats .Method ) {
334
+ stats .Method = "invalid_method"
335
+ }
336
336
337
337
// Note these must match the order in requestTags at the top
338
338
requestLabels := prometheus.Labels {
You can’t perform that action at this time.
0 commit comments