Compare commits
1 Commits
dev
...
metrics-fi
Author | SHA1 | Date |
---|---|---|
Jef Roosens | 7ba1727a9f |
|
@ -331,10 +331,10 @@ fn handle_conn[T](mut conn net.TcpConn, mut app T, routes map[string]Route) {
|
|||
app.logger.flush()
|
||||
}
|
||||
|
||||
// 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()]!,
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue