class
OpenTelemetry::LogErrorHandler
- OpenTelemetry::LogErrorHandler
- OpenTelemetry::ErrorHandler
- Reference
- Object
Overview
Reports diagnostics through Crystal's logger at or above the supplied level. Concurrency: safe for concurrent use with a concurrency-safe log backend.
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.