Initialize and provide handler for proxy worker http metrics (#1961)
*feat(metrics): implement prometheus handler for proxy worker http requests and record metric for header write duration
This commit is contained in:
1 parent
20e6c0ce6c
commit
62f0d18885
5 files changed
+115
-3
No files matched your search
@@ -198,7 +198,7 @@ var expectedStatusCodesPerMethod = map[string][]int{
|
||||
},
|
||||
}
|
||||
|
||||
// pathLabel maps the requested path the the label value recorded for metrics
|
||||
// pathLabel maps the requested path to the label value recorded for metrics
|
||||
func pathLabel(incomingPath string) string {
|
||||
if incomingPath == "" || incomingPath[0] != '/' {
|
||||
incomingPath = fmt.Sprintf("/%s", incomingPath)
|
||||
|
||||
Reference in new issue
Block a user