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)