You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Spring Boot starter, setting otel.sdk.disabled = true causes the application startup to fail on on a missing ConfigProperties bean dependency. This can be triggered by any of the four autoconfiguration classes that now depend on config properties:
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'otelOtlpLogRecordExporter' defined in class path resource [io/opentelemetry/instrumentation/spring/autoconfigure/exporters/otlp/OtlpLogRecordExporterAutoConfiguration.class]:
Unsatisfied dependency expressed through method 'otelOtlpLogRecordExporter' parameter 0:
No qualifying bean of type 'io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties' available:
expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
The specific exporter may vary, this is one of 4 possible unsatisfied dependencies.
Javaagent or library instrumentation version
2.1.0-alpha
Environment
JDK: Corretto 21
OS: Mac OS Ventura
Spring Boot 3.2.2
Additional context
As a possible workaround, the application starts up if all exporters and propagation is explicitly disabled:
Describe the bug
With Spring Boot starter, setting
otel.sdk.disabled = true
causes the application startup to fail on on a missingConfigProperties
bean dependency. This can be triggered by any of the four autoconfiguration classes that now depend on config properties:The issue does not happen in
2.0.0-alpha
, the likely change that triggered it is f715a18, and d8aa0f5 for propagation.Steps to reproduce
Expected behavior
The application starts up, with SDK entirely disabled.
Actual behavior
The application startup fails with:
The specific exporter may vary, this is one of 4 possible unsatisfied dependencies.
Javaagent or library instrumentation version
2.1.0-alpha
Environment
JDK: Corretto 21
OS: Mac OS Ventura
Spring Boot 3.2.2
Additional context
As a possible workaround, the application starts up if all exporters and propagation is explicitly disabled:
The text was updated successfully, but these errors were encountered: