Skip to content

Remove global error handler in favor of internal logs #2175

@lalitb

Description

@lalitb
  • Internal logs support is now available (Improve internal opentelemetry logging #2128), and it would make sense to use it for internal errors.
  • This allows the removal of the global error handler.
  • Current downside: it won’t be possible to register a custom handler for errors at this time. However, plan is to add support for registering custom handlers for internal logs.
  • If "internal-logs" is enabled, tracing error macro would be used for handling error, else the eprintln would be used.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions