suppress error log in test (#11223)
This commit is contained in:
parent
d4237fc01a
commit
0a1c87e9f0
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue