Skip to content

Commit cf0430d

Browse files
committed
add test
1 parent d62556d commit cf0430d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

instrumentation/spring/spring-boot-autoconfigure/src/test/java/io/opentelemetry/instrumentation/spring/autoconfigure/internal/instrumentation/logging/LoggingExporterAutoConfigurationTest.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class LoggingExporterAutoConfigurationTest {
2727
LoggingExporterAutoConfiguration.class, OpenTelemetryAutoConfiguration.class));
2828

2929
@Test
30-
void instrumentationEnabled() {
30+
void debugEnabled() {
3131
runner
3232
.withPropertyValues("otel.spring-starter.debug=true", "otel.traces.exporter=none")
3333
.run(
@@ -47,10 +47,20 @@ void alreadyAdded() {
4747
}
4848

4949
@Test
50-
void instrumentationDisabled() {
50+
void debugUnset() {
5151
runner.run(
5252
context ->
5353
assertThat(context.getBean(OpenTelemetry.class).toString())
5454
.doesNotContain("LoggingSpanExporter"));
5555
}
56+
57+
@Test
58+
void debugDisabled() {
59+
runner
60+
.withPropertyValues("otel.spring-starter.debug=false", "otel.traces.exporter=none")
61+
.run(
62+
context ->
63+
assertThat(context.getBean(OpenTelemetry.class).toString())
64+
.doesNotContain("LoggingSpanExporter"));
65+
}
5666
}

0 commit comments

Comments
 (0)