Skip to content

Commit

Permalink
Merge pull request #886 from jenkinsci/fix-infinite-loop
Browse files Browse the repository at this point in the history
Fix infinite loop in `ReconfigurableEventLoggingProvider`
  • Loading branch information
kuisathaverat authored Jul 5, 2024
2 parents f242d05 + 2d3a07d commit b3ba5d8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b3ba5d8

Please sign in to comment.