Annotation Type ManagedAttribute


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

A getter of a ManagedResource bean published as a gauge.

The getter takes no arguments and returns a number -- a primitive or its box -- or a boolean, published as 0 or 1.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    What the value means, for the listing.
    The unit, in UCUM as OpenTelemetry expects -- ms, By, {request}.
  • Element Details

    • description

      String description
      What the value means, for the listing.
      Default:
      ""
    • unit

      String unit
      The unit, in UCUM as OpenTelemetry expects -- ms, By, {request}.
      Default:
      ""