This is an automated email from the ASF dual-hosted git repository.

jlmonteiro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/master by this push:
     new d61906f705 Compilation issue after Metrics API update
d61906f705 is described below

commit d61906f70528e508b946c53f0263f7077bfd13c1
Author: Jean-Louis Monteiro <[email protected]>
AuthorDate: Tue May 10 13:20:46 2022 +0200

    Compilation issue after Metrics API update
---
 .../src/main/java/org/superbiz/rest/WeatherService.java               | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/examples/mp-metrics-counted/src/main/java/org/superbiz/rest/WeatherService.java
 
b/examples/mp-metrics-counted/src/main/java/org/superbiz/rest/WeatherService.java
index f682667cc9..1194fc1493 100644
--- 
a/examples/mp-metrics-counted/src/main/java/org/superbiz/rest/WeatherService.java
+++ 
b/examples/mp-metrics-counted/src/main/java/org/superbiz/rest/WeatherService.java
@@ -34,7 +34,7 @@ import jakarta.ws.rs.core.MediaType;
 public class WeatherService {
 
     @Path("/day/status")
-    @Counted(monotonic = true, name = "weather_day_status", absolute = true,
+    @Counted(name = "weather_day_status", absolute = true,
             displayName = "Weather Day Status",
             description = "This metric shows the weather status of the day.",
             tags = {"weather=day"})
@@ -45,7 +45,7 @@ public class WeatherService {
     }
 
     @Path("/week/status")
-    @Counted(monotonic = true, name = "weather_week_status", absolute = true)
+    @Counted(name = "weather_week_status", absolute = true)
     @GET
     @Produces(MediaType.TEXT_PLAIN)
     public String weekStatus() {

Reply via email to