distribution/distribution

OTEL errors are not logged through Logrus

corhere opened this issue · 1 comments

Description

The OpenTelemetry SDK by default handles "irredeemable" errors by logging then to stderr using the stdlib log package. We are neglecting to override this default, so OTEL logs are formatted differently from all other application logs.

Reproduce

See #4270

Expected behavior

OTEL errors are logged in the same format as any other application error

registry version

v3.0.0-alpha.1

Additional Info

https://pkg.go.dev/go.opentelemetry.io/otel#SetErrorHandler

Hi @corhere , @milosgajdos , i would like to work on this one, can you please assign it to me?