Skip to content

Commit

Permalink
Stop using deprecated constructor (#5040)
Browse files Browse the repository at this point in the history
* Stop using deprecated constructor

* Try to fix the build
  • Loading branch information
iNikem authored Jan 7, 2022
1 parent d5bd3cb commit 25550e0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ public class LoggingSpanExporterAutoConfiguration {
@Bean
@ConditionalOnMissingBean
public LoggingSpanExporter otelLoggingSpanExporter() {
return new LoggingSpanExporter();
return LoggingSpanExporter.create();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private static void maybeEnableLoggingExporter(SdkTracerProviderBuilder builder)
if (Config.get().isAgentDebugEnabled()) {
// don't install another instance if the user has already explicitly requested it.
if (loggingExporterIsNotAlreadyConfigured()) {
builder.addSpanProcessor(SimpleSpanProcessor.create(new LoggingSpanExporter()));
builder.addSpanProcessor(SimpleSpanProcessor.create(LoggingSpanExporter.create()));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pluginManagement {
}

plugins {
id("com.gradle.enterprise") version "3.7.2"
id("com.gradle.enterprise") version "3.8"
id("com.github.burrunan.s3-build-cache") version "1.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.6.1"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public final class LibraryTestRunner implements InstrumentationTestRunner {
.setTracerProvider(
SdkTracerProvider.builder()
.addSpanProcessor(new FlushTrackingSpanProcessor())
.addSpanProcessor(SimpleSpanProcessor.create(new LoggingSpanExporter()))
.addSpanProcessor(SimpleSpanProcessor.create(LoggingSpanExporter.create()))
.addSpanProcessor(SimpleSpanProcessor.create(testExporter))
.build())
.setPropagators(ContextPropagators.create(W3CTraceContextPropagator.getInstance()))
Expand Down

0 comments on commit 25550e0

Please sign in to comment.