pub const MAX_PATH_LEN: usize = 256;Expand description
Maximum byte length that a request path is allowed to occupy in a
tracing span attribute (see sanitize_path). Anything longer is
truncated with a … suffix to keep operator log lines bounded and
to deny a hostile client a cheap way to balloon every log record
that touches their request.
256 bytes comfortably accommodates every route template the API
exposes today (the longest, /functions/{id}/invoke-async, is far
under that even after path-parameter substitution) while still
bounding the per-span attribute footprint to a constant. Bump only
after auditing the dashboard layouts in docs/OBSERVABILITY.md —
a wider value widens the log-line budget linearly.