mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
improve log message for namespace collision
This commit is contained in:
parent
4f22bf113d
commit
d0efb5f07b
@ -38,7 +38,8 @@ public class NBBaseComponentMetrics implements NBComponentMetrics {
|
||||
lock.lock();
|
||||
String openMetricsName = metric.getLabels().linearizeAsMetrics();
|
||||
if (metrics.containsKey(openMetricsName)) {
|
||||
throw new RuntimeException("Can't add the same metric by label set to the same live component:" + openMetricsName);
|
||||
throw new RuntimeException("Can't add the same metric by label set to the same live component:" +
|
||||
" this:" + this.toString());
|
||||
}
|
||||
metrics.put(openMetricsName,metric);
|
||||
for (MetricRegistryListener listener : listeners) {
|
||||
|
Loading…
Reference in New Issue
Block a user