View Source LoggerExporter.Batcher (LoggerExporter v0.4.0)

GenServer that batches the events in a :queue

Sends the batch to the HTTPClient

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Enqueue events to the Batcher Events will be processed and exported to the service

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec enqueue(LoggerExporter.Event.t()) :: :ok

Enqueue events to the Batcher Events will be processed and exported to the service

@spec get_queue() :: [LoggerExporter.Event.t()]