HTTP.EventSource.Telemetry (http_event_source v0.10.0)

View Source

Telemetry helpers for EventSource lifecycle and message events.

Summary

Functions

close_stop(url, reason)

@spec close_stop(URI.t(), term()) :: :ok

connect_exception(url, error, duration)

@spec connect_exception(URI.t(), term(), non_neg_integer()) :: :ok

connect_start(url)

@spec connect_start(URI.t()) :: :ok

connect_stop(url, status, duration)

@spec connect_stop(URI.t(), non_neg_integer(), non_neg_integer()) :: :ok

message_received(url, event_type, last_event_id, bytes)

@spec message_received(URI.t(), String.t(), String.t(), non_neg_integer()) :: :ok

reconnect_start(url, reason, reconnect_time, attempt)

@spec reconnect_start(URI.t(), term(), non_neg_integer(), non_neg_integer()) :: :ok

reconnect_stop(url, attempt)

@spec reconnect_stop(URI.t(), non_neg_integer()) :: :ok