Skip to content

Commit

Permalink
fix: used the wrong registry in prometheus middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Feb 12, 2024
1 parent 5002045 commit 217defe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prometheus/tiny_httpd_prometheus.ml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ let add_route_to_server (server : H.t) (reg : registry) : unit =
H.Response.make_string @@ Ok str

let instrument_server (server : H.t) reg : unit =
H.add_middleware ~stage:(`Stage 1) server (http_middleware global);
H.add_middleware ~stage:(`Stage 1) server (http_middleware reg);
add_route_to_server server reg

module GC_metrics = struct
Expand Down

0 comments on commit 217defe

Please sign in to comment.