PluginMetricMaker: Append trailing slash to plugin namespace

Metric names do not start with "/", hence the plugin namespace
needs to end with it.

Change-Id: I7e1d88a327f1dc48ae9212b93d2f5816074e6a6d
This commit is contained in:
Gustaf Lundh
2015-11-13 09:12:06 -08:00
committed by David Pursehouse
parent 01b4f192fc
commit 39e5fc6ff0

View File

@@ -47,7 +47,7 @@ class PluginMetricMaker extends MetricMaker implements LifecycleListener {
PluginMetricMaker(MetricMaker root, String pluginName) {
this.root = root;
this.prefix = "plugins/" + pluginName;
this.prefix = String.format("plugins/%s/", pluginName);
cleanup = Collections.synchronizedSet(new HashSet<RegistrationHandle>());
}