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.