diff --git a/src/main/java/io/jenkins/plugins/opentelemetry/opentelemetry/ReconfigurableOpenTelemetry.java b/src/main/java/io/jenkins/plugins/opentelemetry/opentelemetry/ReconfigurableOpenTelemetry.java index 99b979a0d..31f8fb3cf 100644 --- a/src/main/java/io/jenkins/plugins/opentelemetry/opentelemetry/ReconfigurableOpenTelemetry.java +++ b/src/main/java/io/jenkins/plugins/opentelemetry/opentelemetry/ReconfigurableOpenTelemetry.java @@ -26,6 +26,7 @@ import io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdk; import io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties; import io.opentelemetry.sdk.common.CompletableResultCode; +import io.opentelemetry.sdk.logs.internal.SdkEventLoggerProvider; import io.opentelemetry.sdk.resources.Resource; import java.io.Closeable; @@ -132,7 +133,7 @@ public void setOpenTelemetryImpl(OpenTelemetry openTelemetryImpl) { this.meterProviderImpl.setDelegate(openTelemetryImpl.getMeterProvider()); this.traceProviderImpl.setDelegate(openTelemetryImpl.getTracerProvider()); this.loggerProviderImpl.setDelegate(openTelemetryImpl.getLogsBridge()); - this.eventLoggerProviderImpl.setDelegate(GlobalEventLoggerProvider.get()); + this.eventLoggerProviderImpl.setDelegate(SdkEventLoggerProvider.create(openTelemetryImpl.getLogsBridge())); } @Override