Skip to content

Commit e0f2a9b

Browse files
authored
Merge pull request #5393 from atlanhq/mlh-1199-master
MLH-1199 replace null with `this` in gauge builder
2 parents ace953c + d4d86a6 commit e0f2a9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/src/main/java/org/apache/atlas/service/FeatureFlagStore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ public void initialize() throws InterruptedException {
8383
// Add version tracking metric
8484
MeterRegistry meterRegistry = org.apache.atlas.service.metrics.MetricUtils.getMeterRegistry();
8585
Gauge.builder(METRIC_COMPONENT + "_atlas_version_enabled",
86-
null,
87-
unused -> isTagV2Enabled() ? 2.0 : 1.0)
86+
this,
87+
ref -> isTagV2Enabled() ? 2.0 : 1.0)
8888
.description("Indicates which Tag propagation version is enabled (2.0 = v2, 1.0 = v1)")
8989
.tag("component", "version")
9090
.register(meterRegistry);

0 commit comments

Comments
 (0)