metrics API should enforce some restrictions on tag and metric names
--------------------------------------------------------------------
Key: HADOOP-887
URL: https://issues.apache.org/jira/browse/HADOOP-887
Project: Hadoop
Issue Type: Improvement
Components: metrics
Affects Versions: 0.10.1
Reporter: Nigel Daley
Priority: Minor
The metrics API currently allows any string to be a metric name or tag name
(see org.apache.hadoop.metrics.Metrics.createRecord(...) and
org.apache.hadoop.metrics .Metrics.report(...)).
Such unrestricted names makes it difficult to implement metrics providers that
generate source code to manipulate these metrics, since many characters are
invalid as method or variable names.
I'd like to propose that metric names be restricted to letters, digits, and
underscore (A-Za-z0-9_) and this restriction be documented and enforced by the
API.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira