Annotation Type Timed


@Retention(CLASS) @Target(METHOD) public @interface Timed

Records how long each call of this method takes, as a histogram.

The build rewrites the method to read the clock before and after its body; the instrument itself is created once, when the class is first used.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    What it measures, for the listing.
    The metric's name.
  • Element Details

    • value

      String value
      The metric's name. Empty means the class and method, such as com.example.Orders.place.duration.
      Default:
      ""
    • description

      String description
      What it measures, for the listing.
      Default:
      ""