format_process_name

Function format_process_name 

Source
pub fn format_process_name(proc_id: &ProcId) -> String
Expand description

Format a human-readable process name for diagnostics and logs.

Used by launchers to set HYPERACTOR_PROCESS_NAME environment variable.

This string is intended for operators (not for stable identity). We populate [PROCESS_NAME_ENV] with it so the launched proc can include a friendly identifier in logs, crash reports, etc.

Format:

  • ProcId(_, name)<name> @ <host_process_name>

The host identity is taken from the current process’s HYPERACTOR_PROCESS_NAME, falling back to the machine hostname. This groups procs under their host process in traces and logs.