Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
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).