Uploaded image for project: 'Edgent'
  1. Edgent
  2. EDGENT-17

SingleMetricAbstractOplet always creates a metric name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Runtime, Utils
    • None

    Description

      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.

              this.metricName = context.uniquify(shortMetricName);
              MetricRegistry registry = context.getService(MetricRegistry.class);
              if (registry != null) {
                  registry.register(getMetricName(), getMetric());
              }
      

      This issue was moved from https://github.com/quarks-edge/quarks/issues/94 .

      Attachments

        Activity

          People

            vdogaru Victor Dogaru
            vdogaru Victor Dogaru
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4h
                4h