bjozet commented on a change in pull request #9372: Add config option for
namespacePrefix
URL: https://github.com/apache/druid/pull/9372#discussion_r381986263
##########
File path:
extensions-contrib/opentsdb-emitter/src/main/java/org/apache/druid/emitter/opentsdb/EventConverter.java
##########
@@ -54,9 +55,14 @@ protected String sanitize(String metric)
return WHITESPACE.matcher(metric.trim()).replaceAll("_").replace('/', '.');
}
- private String buildNamespace()
+ private String buildMetric(String metric)
{
- return (namespacePrefix == null || "".equals(namespacePrefix)) ? "" :
sanitize(namespacePrefix) + ".";
+ final String sanitized = sanitize(metric);
+ if (Strings.isNullOrEmpty(namespacePrefix)) {
Review comment:
Fixed in latest commit
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]