You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@edgent.apache.org by "Victor Dogaru (JIRA)" <ji...@apache.org> on 2016/03/09 02:51:40 UTC
[jira] [Created] (QUARKS-17) SingleMetricAbstractOplet always
creates a metric name
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)