Imagine I'm instrumenting kafka:
- there could be some events I'd emit - e.g. cluster leader is unreachable - which are documented in the semconv
- there could also be things I just want to let my users know of via logs. E.g. certain configuration was picked, connection has dropped, etc. I could use 3rd party logging library, but why if I can use OTel logging API without adding a new dependency?
The library logs are emitted with is not relevant to users - they'd get the same logs if lib used 3rd party logger or OTel API. So I don't see why we should limit instrumentations from using OTel API to emit undocumented regular (but structured) logs.
Originally posted by @lmolkova in #4225 (comment)
Imagine I'm instrumenting kafka:
The library logs are emitted with is not relevant to users - they'd get the same logs if lib used 3rd party logger or OTel API. So I don't see why we should limit instrumentations from using OTel API to emit undocumented regular (but structured) logs.
Originally posted by @lmolkova in #4225 (comment)