suppress error log in test (#11223)

This commit is contained in:
Gregor Zeitlinger 2024-04-25 13:11:51 +02:00 committed by GitHub
parent d4237fc01a
commit 0a1c87e9f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@ class SpringConfigPropertiesTest {
this.contextRunner this.contextRunner
.withConfiguration(AutoConfigurations.of(OpenTelemetryAutoConfiguration.class)) .withConfiguration(AutoConfigurations.of(OpenTelemetryAutoConfiguration.class))
.withPropertyValues( .withPropertyValues(
"otel.metrics.exporter=none", // to suppress confusing error log
"otel.logs.exporter=none",
"otel.traces.exporter=none",
"otel.resource.attributes.environment=dev", "otel.resource.attributes.environment=dev",
"otel.resource.attributes.xyz=foo", "otel.resource.attributes.xyz=foo",
"otel.resource.attributes.service.instance.id=id-example") "otel.resource.attributes.service.instance.id=id-example")