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

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

post_logs(events, config)

View Source

Specs

post_logs([map()], LogflareTelemetry.Config.t()) ::
  {:ok, Tesla.Env.t()} | {:error, term()}
Link to this function

send_to_logflare(config)

View Source