View Source Plausible.Ingestion.Counters.TelemetryHandler (Plausible v0.0.1)

Susbcribes to telemetry events emitted by Plausible.Ingestion.Event. Every time a request derived event is either dispatched to clickhouse or dropped, a telemetry event is emitted respectively. That event is captured here, its metadata is extracted and sent for internal stats aggregation via Counters.Buffer interface.

Summary

Functions

Link to this function

handle_event(list, measurements, map, buffer)

View Source
@spec handle_event([atom()], any(), map(), Plausible.Ingestion.Counters.Buffer.t()) ::
  :ok
@spec install(Plausible.Ingestion.Counters.Buffer.t()) :: :ok