Skip to content

Commit

Permalink
Merge pull request #2414 from tsundberg/timed-and-meterd-cannot-be-us…
Browse files Browse the repository at this point in the history
…ed-at-the-same-time

Document that the Timed and Metered can't be used at the same time.
  • Loading branch information
jplock committed Jun 27, 2018
2 parents 3b14a58 + 1359051 commit 4cb87b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/source/manual/core.rst
Expand Up @@ -1300,6 +1300,11 @@ Dropwizard augments Jersey to automatically record runtime information about you
* ``@Metered`` measures the rate at which the resource is accessed
* ``@ExceptionMetered`` measures how often exceptions occur processing the resource

.. important::

``@Timed`` and ``@Metered`` cannot be used at the same time. ``@Timed`` includes ``@Metered`` and
an ``IllegalArgumentException`` will be thrown if you try to annotate a method with both.

.. _man-core-resources-parameters:

Parameters
Expand Down

0 comments on commit 4cb87b0

Please sign in to comment.