Class: Snails::LogDeliveryJob

Inherits:
ActiveJob::Base show all
Defined in:
runtime/snails/logger/log_delivery_job.rbs,
runtime/snails/logger/log_delivery_job.rb

Class Method Summary collapse

Methods inherited from ActiveJob::Base

job_name

Class Method Details

.perform(body) ⇒ void

post one encoded OTLP batch. The transport is read at run time so a swapped transport is honored; a missing transport or a network/HTTP failure is written locally and, for a real failure, raised to the queue so the row records it.

Parameters:

  • body (Hash) —

    the OTLP logs JSON structure

Raises:

  • (StandardError) —

    the transport failure after the local report



18
# File 'runtime/snails/logger/log_delivery_job.rb', line 18

def self.perform: (untyped body) -> void