Exception: Snails::Logger::OTLPTransport::DeliveryError

Inherits:
StandardError
  • Object
show all
Defined in:
runtime/snails/logger/otlp_transport.rb,
runtime/snails/logger/otlp_transport.rbs

Overview

The failure send_encoded raises for a non-2xx response. status is the HTTP code, nil for a network-level failure.

Instance Method Summary collapse

Constructor Details

#initialize(message, status = nil) ⇒ DeliveryError

Returns a new instance of DeliveryError.

Parameters:



11
# File 'runtime/snails/logger/otlp_transport.rbs', line 11

def initialize: (String message, ?Integer? status) -> void

Instance Method Details

#status ⇒ Integer?

the HTTP status that failed, or nil for a network error.

Returns:



41
# File 'runtime/snails/logger/otlp_transport.rb', line 41

def status: () -> Integer?