We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fb10d0 commit c73910eCopy full SHA for c73910e
internal/ingress/metric/collectors/socket.go
@@ -99,7 +99,7 @@ var requestTags = []string{
99
"canary",
100
}
101
102
-var validHttpMethods = []string{
+var validHTTPMethods = []string{
103
// Unless otherwise noted, these are defined in RFC 7231 section 4.3.
104
"GET",
105
"HEAD",
@@ -330,7 +330,7 @@ func (sc *SocketCollector) handleMessage(msg []byte) {
330
if sc.reportStatusClasses && stats.Status != "" {
331
stats.Status = fmt.Sprintf("%cxx", stats.Status[0])
332
333
- if !slices.Contains(validHttpMethods, stats.Method) {
+ if !slices.Contains(validHTTPMethods, stats.Method) {
334
stats.Method = "invalid_method"
335
336
0 commit comments