From 217defecc52a3c6be4aa56b81c07c904c5cdb878 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Mon, 12 Feb 2024 16:19:58 -0500 Subject: [PATCH] fix: used the wrong registry in prometheus middleware --- src/prometheus/tiny_httpd_prometheus.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prometheus/tiny_httpd_prometheus.ml b/src/prometheus/tiny_httpd_prometheus.ml index b1731d5b..325018a8 100644 --- a/src/prometheus/tiny_httpd_prometheus.ml +++ b/src/prometheus/tiny_httpd_prometheus.ml @@ -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