Module headers

Source
Expand description

For message headers and latency tracking. Message headers and latency tracking functionality for the mailbox system.

This module provides header attributes and utilities for message metadata, including latency tracking timestamps used to measure message processing times.

Statics§

SEND_TIMESTAMP
Send timestamp for message latency tracking

Functions§

log_message_latency_if_sampling
This function checks the configured sampling rate and, if the random sample passes, calculates the latency between the send timestamp and the current time, then records the latency metric with the associated actor ID.
set_send_timestamp
Set the send timestamp for latency tracking if timestamp not already set.