Closed NickLarsenNZ closed 1 week ago
Thanks for reporting the issue. The opentelemetry-appender-tracing
crate enables the logs_level_enabled
feature by default, which in turn enables it for the opentelemetry
crate, while it remains disabled in the opentelemetry-sdk
crate. This is causing the build error.
You can disable this feature for opentelemetry-appender-tracing
if you are not using it:
opentelemetry = { version = "0.23.0", features = ["logs"] }
opentelemetry_sdk = { version = "0.23.0", features = ["logs", "rt-tokio"] }
opentelemetry-appender-tracing = { version = "0.4.0", default-features = false }
Or enable this feature for opentelemetry-sdk
if you are using it:
opentelemetry = { version = "0.23.0", features = ["logs"] }
opentelemetry_sdk = { version = "0.23.0", features = ["logs", "rt-tokio", "logs_level_enabled"] }
opentelemetry-appender-tracing = { version = "0.4.0" }
Will fix this in next release.
Just to add, conditional inclusion of this feature will be removed from subsequent releases, once it is stable in specs - https://github.com/open-telemetry/opentelemetry-specification/blob/v1.34.0/specification/logs/bridge-api.md#enabled
What happened?
When upgrading from 0.22 to 0.23, I run into a compilation error about missing implementation. It is related to logging, so it might be dependent on features...
Relevant dependencies
API Version
0.23
SDK Version
0.23
What Exporter(s) are you seeing the problem on?
N/A
Relevant log output