pub fn truncate_text(s: &str, max_len: usize) -> String
Truncate text to max length with ellipsis.
Used for displaying node text in traces.