drop wizard 0.9 to 1.1 @Timed and ExceptionMetered

23 views
Skip to first unread message

Tushar Kapila

unread,
Jul 5, 2017, 6:33:51 AM7/5/17
to metrics-user
In our code we have many instances of


   @POST
   @Timed
   @ExceptionMetered
   @Path("delete")

  public Map<String, Object> deleteBlah


When I upgraded to drop wizard 1.1 (from 0.9.3)  this throws an exception. If I remove one of  @ExceptionMetered or @Timed app starts. Is there a way to have both? What code changes do I need to make?

In my build.gradle :

    //compile 'io.dropwizard:dropwizard-core:0.9.3'
    compile 'io.dropwizard:dropwizard-core:1.1.2'

Thank you
Reply all
Reply to author
Forward
0 new messages