Skip to main content

Module telemetry

Module telemetry 

Source
Expand description

Public telemetry facade for runtime crates and external callers.

Structs§

TelemetrySpan
In-memory telemetry span that writes line-delimited JSON events when enabled.

Constants§

MAX_COMMAND_FIELD_CHARS
Max number of chars retained for telemetry command-like fields.
MAX_TEXT_FIELD_CHARS
Max number of chars retained for telemetry message-like fields.
TELEMETRY_FILE_ENV
Environment variable that enables telemetry writing when set to a file path.
TELEMETRY_INCLUDE_ARGS_ENV
Environment variable that allows raw argv capture in telemetry payloads.

Functions§

exit_code_kind
Stable exit-kind mapping used in telemetry records.
truncate_chars
Truncate a text field to a stable char budget.