István Fajth created HADOOP-18409:
-------------------------------------

             Summary: Support @Metric annotation on String fields similarly as 
with methods returning String
                 Key: HADOOP-18409
                 URL: https://issues.apache.org/jira/browse/HADOOP-18409
             Project: Hadoop Common
          Issue Type: Improvement
          Components: metrics
            Reporter: István Fajth
            Assignee: István Fajth


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).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-dev-h...@hadoop.apache.org

Reply via email to