Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-18409

Support @Metric annotation on String fields similarly as with methods returning String

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • metrics
    • None

    Description

      In the Metrics2 framework, if a method is annotated with Metric annotation, and if it returns a String, then the String is understood as a TAG.

      A field that is annotated with the Metric annotation on the other hand is not understood as a tag, even if the type of the annotation is set to Metric.Type.TAG, and gets ignored if the field type is String.

      It would be great if Metric annotated String fields would have the same default behaviour as Metric annotated methods that return String value.

      This has come up as part of HDDS-7120 (discussion is in the PR for that ticket).

      Attachments

        Activity

          People

            sgal Szabolcs Gál
            pifta István Fajth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: