How much stack trace is enough?
Removing framework frames makes a report readable, but trimming too early can hide an async boundary or the caller that supplied the bad value.
Testable angle
Compare the first application frame, the nearest framework boundary, and the final exception. Which line would change your diagnosis if it disappeared?
Safe boundary: Replace private paths and identifiers, but preserve frame order, function names, package versions, and the exception chain.