Telemetry events emitted by Julep clients.
Every event's metadata includes :module, the client module, and :url, the
URL the client connects to without its query, since a query can carry a
signature. No event carries a frame's payload.
Durations are in native time units; convert them with
System.convert_time_unit/3.
Connection attempts
[:julep, :connect, :start]- a connection attempt begins.- Measurements:
:system_time. - Metadata:
:attempt, the attempt number since the last successful connection, starting at 1.
- Measurements:
[:julep, :connect, :stop]- the attempt ends.- Measurements:
:duration. - Metadata:
:attempt, and:result, which is:okor{:error, reason}with aJulep.disconnect_reason/0.
- Measurements:
Disconnects
[:julep, :disconnect]- an established connection ends.- Measurements:
:duration, how long it was connected. - Metadata:
:reason, aJulep.disconnect_reason/0, and:action, which is{:reconnect, delay}or:stop.
- Measurements:
Frames
[:julep, :frame, :received]and[:julep, :frame, :sent]- a frame arrives or is written, control frames included.- Measurements:
:size, the payload's length in bytes. - Metadata:
:type, such as:text,:binary,:pingor:close.
- Measurements: