Skip to content

Commit b4733b7

Browse files
committed
Fixed NamespacedMetricExt.getGauge to effectively return the Gauge metric instance stored in the metric store.
1 parent d734ff4 commit b4733b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logstash-core/src/main/java/org/logstash/instrument/metrics/NamespacedMetricExt.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected IRubyObject getCounter(final ThreadContext context, final IRubyObject
7676
@Override
7777
protected IRubyObject getGauge(final ThreadContext context, final IRubyObject key,
7878
final IRubyObject value) {
79-
// return metric.gauge(context, namespaceName, key, value);
79+
metric.gauge(context, namespaceName, key, value);
8080
return collector(context).callMethod(
8181
context, "get", new IRubyObject[]{namespaceName, key, MetricExt.GAUGE}
8282
);

0 commit comments

Comments
 (0)