Public contract helpers for Parapet's async and delivery telemetry families.
Stable
This module is stable as of v1.0.0. Its public API will not change without a major-version bump and a full deprecation cycle. See Stability & Deprecation Policy for details.
Summary
Functions
Returns the list of allowed public metadata keys for a given event family.
Accepts either a full event name list (e.g. [:parapet, :delivery, :outbound]) or a
family atom (e.g. :outbound).
Buckets a delay in milliseconds into a low-cardinality atom for use as a telemetry metadata value.
Accepts integers or floats (floats are rounded). Raises FunctionClauseError for negative values.
Returns the list of all six frozen async and delivery telemetry event family name tuples.
Returns the full telemetry event name tuple for a given delivery or async family atom.
Normalizes an async outcome atom or string to its canonical form.
Raises ArgumentError for unknown outcomes.
Normalizes a delivery outcome atom or string to its canonical form.
Raises ArgumentError for unknown outcomes.
Normalizes a fault plane atom or string to its canonical form.
Raises ArgumentError for unknown fault planes.
Normalizes a retry state atom or string to its canonical form.
Raises ArgumentError for unknown retry states.
Shapes a raw metadata map for a given event family into the public-key-only metadata map
expected in the telemetry event. Strips private/internal keys, normalizes known values, and
collects ref keys under a :refs sub-map. Accepts either a full event name list or a family
atom.
Functions
Returns the list of allowed public metadata keys for a given event family.
Accepts either a full event name list (e.g. [:parapet, :delivery, :outbound]) or a
family atom (e.g. :outbound).
Buckets a delay in milliseconds into a low-cardinality atom for use as a telemetry metadata value.
Accepts integers or floats (floats are rounded). Raises FunctionClauseError for negative values.
Returns the list of all six frozen async and delivery telemetry event family name tuples.
Returns the full telemetry event name tuple for a given delivery or async family atom.
Normalizes an async outcome atom or string to its canonical form.
Raises ArgumentError for unknown outcomes.
Normalizes a delivery outcome atom or string to its canonical form.
Raises ArgumentError for unknown outcomes.
Normalizes a fault plane atom or string to its canonical form.
Raises ArgumentError for unknown fault planes.
Normalizes a retry state atom or string to its canonical form.
Raises ArgumentError for unknown retry states.
Shapes a raw metadata map for a given event family into the public-key-only metadata map
expected in the telemetry event. Strips private/internal keys, normalizes known values, and
collects ref keys under a :refs sub-map. Accepts either a full event name list or a family
atom.