Skip to content

Commit 3272c67

Browse files
authored
Remove duplicate assignment of OTel global instance (helidon-io#10611)
* Remove duplicate assignment of OTel global instance
1 parent 43069a6 commit 3272c67

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

telemetry/opentelemetry-config/src/main/java/io/helidon/telemetry/otelconfig/HelidonOpenTelemetryServiceFactory.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package io.helidon.telemetry.otelconfig;
1818

19-
import java.util.Map;
2019
import java.util.function.Supplier;
2120

2221
import io.helidon.config.Config;
@@ -55,11 +54,6 @@ public OpenTelemetry get() {
5554
wasOtelGlobalSet = true;
5655
}
5756

58-
if (otelConfig.global() && !wasOtelGlobalSet) {
59-
io.helidon.telemetry.otelconfig.HelidonOpenTelemetry.global(result,
60-
otelConfig.service(),
61-
Map.of());
62-
}
6357
return result;
6458
}
6559
}

0 commit comments

Comments
 (0)