mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2026-03-09 07:13:33 -04:00
fix warnings
This commit is contained in:
parent
a11ed88522
commit
94ed68c30c
1 changed files with 3 additions and 5 deletions
|
|
@ -69,12 +69,10 @@ let middleware_stat () : Server.Middleware.t * (unit -> string) =
|
|||
|
||||
let middleware_trace : Server.Middleware.t =
|
||||
fun (h : Server.Middleware.handler) req ~resp ->
|
||||
let _sp =
|
||||
Trace.enter_manual_toplevel_span ~__FILE__ ~__LINE__ "http.handle"
|
||||
in
|
||||
let _sp = Trace.enter_span ~__FILE__ ~__LINE__ "http.handle" in
|
||||
let new_resp (r : Response.t) =
|
||||
Trace.add_data_to_manual_span _sp [ "http.code", `Int r.code ];
|
||||
Trace.exit_manual_span _sp;
|
||||
Trace.add_data_to_span _sp [ "http.code", `Int r.code ];
|
||||
Trace.exit_span _sp;
|
||||
resp r
|
||||
in
|
||||
h req ~resp:new_resp
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue