Skip to content

OTEL errors are not logged through Logrus #4275

@corhere

Description

@corhere

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions