class OpenTelemetry::ProcErrorHandler

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.cr

Constructors

Instance Method Summary

Instance methods inherited from class OpenTelemetry::ErrorHandler

handle(exception : Exception | Nil, message : String | Nil, severity : Log::Severity) : Nil handle

Constructor Detail

def self.new(&proc : Exception | Nil, String | Nil, Log::Severity -> Nil) #

[View source]

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.


[View source]