From 58db6e760d061370609acf1a80c35c1b5c1fe514 Mon Sep 17 00:00:00 2001 From: Gregor Zeitlinger Date: Thu, 1 Feb 2024 13:42:00 +0100 Subject: [PATCH] re-use sdk logic for configuring otlp exporters --- .../exporters/otlp/OtlpExporterPropertiesTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/instrumentation/spring/spring-boot-autoconfigure/src/test/java/io/opentelemetry/instrumentation/spring/autoconfigure/exporters/otlp/OtlpExporterPropertiesTest.java b/instrumentation/spring/spring-boot-autoconfigure/src/test/java/io/opentelemetry/instrumentation/spring/autoconfigure/exporters/otlp/OtlpExporterPropertiesTest.java index 517ac0cd632e..b9dc9992ece4 100644 --- a/instrumentation/spring/spring-boot-autoconfigure/src/test/java/io/opentelemetry/instrumentation/spring/autoconfigure/exporters/otlp/OtlpExporterPropertiesTest.java +++ b/instrumentation/spring/spring-boot-autoconfigure/src/test/java/io/opentelemetry/instrumentation/spring/autoconfigure/exporters/otlp/OtlpExporterPropertiesTest.java @@ -8,8 +8,8 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.entry; -import io.opentelemetry.instrumentation.spring.autoconfigure.MapConverterTestAutoConfiguration; import io.opentelemetry.instrumentation.spring.autoconfigure.OpenTelemetryAutoConfiguration; +import io.opentelemetry.instrumentation.spring.autoconfigure.resources.OtelResourceAutoConfiguration; import io.opentelemetry.instrumentation.spring.autoconfigure.resources.SpringResourceConfigProperties; import io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties; import java.util.Arrays; @@ -38,7 +38,7 @@ class OtlpExporterPropertiesTest { new ApplicationContextRunner() .withConfiguration( AutoConfigurations.of( - OpenTelemetryAutoConfiguration.class, MapConverterTestAutoConfiguration.class)); + OpenTelemetryAutoConfiguration.class, OtelResourceAutoConfiguration.class)); public static Stream headerKeys() { return Arrays.stream(HEADER_KEYS).map(Arguments::of);