Voile.Logger.OpenObserveHandler (Voile v0.1.31)

Copy Markdown View Source

OTP logger handler that ships log events to OpenObserve via the JSON ingest API.

Ships batches of logs either when the buffer reaches batch_size or when the flush_interval timer fires. Uses Req (Finch) for HTTP transport.

Configuration (via Application env :voile, :open_observe_logs)

config :voile, :open_observe_logs,
  url: "https://host/api/org/stream/_json",
  username: "email@example.com",
  password: "secret",
  batch_size: 100,
  flush_interval: 5_000

Activation

The handler is registered automatically when Voile.Logger.OpenObserveSender starts (added to the supervision tree in Voile.Application).