Skip to content

Commit 0a1c87e

Browse files
authored
suppress error log in test (#11223)
1 parent d4237fc commit 0a1c87e

File tree

1 file changed

+3
-0
lines changed
  • instrumentation/spring/spring-boot-autoconfigure/src/test/java/io/opentelemetry/instrumentation/spring/autoconfigure/resources

1 file changed

+3
-0
lines changed

instrumentation/spring/spring-boot-autoconfigure/src/test/java/io/opentelemetry/instrumentation/spring/autoconfigure/resources/SpringConfigPropertiesTest.java

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ void shouldInitializeAttributesByMapInArow() {
3232
this.contextRunner
3333
.withConfiguration(AutoConfigurations.of(OpenTelemetryAutoConfiguration.class))
3434
.withPropertyValues(
35+
"otel.metrics.exporter=none", // to suppress confusing error log
36+
"otel.logs.exporter=none",
37+
"otel.traces.exporter=none",
3538
"otel.resource.attributes.environment=dev",
3639
"otel.resource.attributes.xyz=foo",
3740
"otel.resource.attributes.service.instance.id=id-example")

0 commit comments

Comments
 (0)