Victor Dogaru created QUARKS-17:
-----------------------------------
Summary: SingleMetricAbstractOplet always creates a metric name
Key: QUARKS-17
URL: https://issues.apache.org/jira/browse/QUARKS-17
Project: Quarks
Issue Type: Bug
Components: Utils, Runtime
Reporter: Victor Dogaru
Assignee: Victor Dogaru
Priority: Minor
This code (line 42) creates a metric name even when metrics are not enabled,
and thus the name is never used. Basically a minor footprint overhead that is
not needed.
{noformat}
this.metricName = context.uniquify(shortMetricName);
MetricRegistry registry = context.getService(MetricRegistry.class);
if (registry != null) {
registry.register(getMetricName(), getMetric());
}
{noformat}
This issue was moved from https://github.com/quarks-edge/quarks/issues/94 .
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)