refactored compute_headers to be a method of SentryMsg