Object name escaping in `JMXReporter` doesn't cover tags
Author: piotrpCreated Sep 9, 2026Updated Sep 9, 2026
Current 5.x releases (5.0.8 at time I am reporting this) don't escape tags when generating ObjectName for JMX. Invalid tag name will break ObjectName construction, while an invalid tag value will fail at a later time.
There are also two smaller issues:
- tags can override
nameandtype domainis quoted but it doesn't suport quoting, an illegal character will always result in NPE (for:or \n) or an unregistrable pattern (*or?`)
Source: dropwizard/metrics