fix(web): don't log new metric for every query param

dev
Jef Roosens 2023-02-19 16:38:53 +01:00
parent 69cc2404db
commit 3b24ad0f2c
Signed by untrusted user: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 2 additions and 1 deletions

View File

@ -332,9 +332,10 @@ fn handle_conn[T](mut conn net.TcpConn, mut app T, routes map[string]Route) {
}
// Record how long request took to process
path := urllib.parse(app.req.url) or { urllib.URL{} }.path
labels := [
['method', app.req.method.str()]!,
['path', app.req.url]!,
['path', path]!,
// Not all methods properly set this value yet I think
['status', app.status.int().str()]!,
]