LogflareTelemetry.BatchCache (Logflare Telemetry Metrics v0.1.0) View Source
Caches the batch, dispatches API post request if the batch is larger than configured max batch size or flush is called. Doesn't error or drop the message if the API is unresponsive, holds them
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Specs
post_logs([map()], LogflareTelemetry.Config.t()) :: {:ok, Tesla.Env.t()} | {:error, term()}