class
OpenTelemetry::ProcErrorHandler
- OpenTelemetry::ProcErrorHandler
- OpenTelemetry::ErrorHandler
- Reference
- Object
Overview
Adapts a proc to the error handler interface. Concurrency: the proc must be safe to call from any fiber and thread.
Defined in:
api/error_handler.crConstructors
Instance Method Summary
-
#handle(exception : Exception | Nil, message : String | Nil, severity : Log::Severity) : Nil
Handles one diagnostic.
Instance methods inherited from class OpenTelemetry::ErrorHandler
handle(exception : Exception | Nil, message : String | Nil, severity : Log::Severity) : Nil
handle
Constructor Detail
Instance Method Detail
def handle(exception : Exception | Nil, message : String | Nil, severity : Log::Severity) : Nil
#
Description copied from class OpenTelemetry::ErrorHandler
Handles one diagnostic. OpenTelemetry discards any exception this hook raises.