From 7507dab4c393d54ba0fb95b082526a1d41909e85 Mon Sep 17 00:00:00 2001 From: Jon Schneider Date: Thu, 14 May 2020 11:52:11 -0400 Subject: [PATCH] Update Javalin sample to use the correct method type --- .../java/io/micrometer/javalin/samples/PrometheusSample.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/micrometer-samples-javalin/src/main/java/io/micrometer/javalin/samples/PrometheusSample.java b/samples/micrometer-samples-javalin/src/main/java/io/micrometer/javalin/samples/PrometheusSample.java index 0060d925c4..8660d3014d 100644 --- a/samples/micrometer-samples-javalin/src/main/java/io/micrometer/javalin/samples/PrometheusSample.java +++ b/samples/micrometer-samples-javalin/src/main/java/io/micrometer/javalin/samples/PrometheusSample.java @@ -111,7 +111,7 @@ public Iterable getTags(HttpServletRequest request, HttpServletResponse res response.setHeader(EXCEPTION_HEADER, null); String uri = app.servlet().getMatcher() - .findEntries(HandlerType.GET, request.getPathInfo()) + .findEntries(HandlerType.valueOf(request.getMethod()), request.getPathInfo()) .stream() .findAny() .map(HandlerEntry::getPath)