Honeybadger.EventsWorker.State (Honeybadger v0.24.0)

View Source

Summary

Types

Function that accepts a list of events to be processed.

t()

State for the event batching GenServer.

Types

send_events_fn()

@type send_events_fn() :: ([term()] -> :ok | {:error, :throttled} | {:error, term()})

Function that accepts a list of events to be processed.

t()

@type t() :: %Honeybadger.EventsWorker.State{
  batch_size: pos_integer(),
  batches: :queue.queue(),
  dropped_events: non_neg_integer(),
  last_dropped_log: non_neg_integer(),
  max_batch_retries: non_neg_integer(),
  max_queue_size: pos_integer(),
  queue: [any()],
  send_events_fn: send_events_fn(),
  throttle_wait: pos_integer(),
  throttling: boolean(),
  timeout: pos_integer(),
  timeout_started_at: non_neg_integer()
}

State for the event batching GenServer.