599166320 commented on code in PR #13034:
URL: https://github.com/apache/druid/pull/13034#discussion_r966001181
##########
extensions-contrib/prometheus-emitter/src/main/java/org/apache/druid/emitter/prometheus/Metrics.java:
##########
@@ -63,6 +64,7 @@ public DimensionsAndCollector getByName(String name, String
service)
public Metrics(String namespace, String path, boolean isAddHostAsLabel,
boolean isAddServiceAsLabel)
{
+ Map<String, DimensionsAndCollector> registeredMetricsTmp = new HashMap<>();
Review Comment:
It's OK. There are indeed many places in Java that like this usage style.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]