[ 
https://issues.apache.org/jira/browse/HADOOP-18409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17584303#comment-17584303
 ] 

Szabolcs Gál commented on HADOOP-18409:
---------------------------------------

[~weichiu] could you add me as a Hadoop contributor? I'd like to work on this 
jira.

> 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
>            Priority: Major
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to