You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reduce allocations in the request interface which runs on every captured
exception:
- Remove env.dup + IP header deletion loop. Instead, filter IP headers
inline in both filter_and_format_headers and filter_and_format_env
when send_default_pii is false. This avoids duplicating the entire
Rack env hash (typically 40+ entries) on every request.
- Cache header name transformations (e.g. HTTP_ACCEPT_LANGUAGE →
Accept-Language) at the class level. Header names are deterministic
and repeat on every request.
- Add ASCII fast-path for header value encoding — ascii_only? strings
are already valid UTF-8, skipping the dup+force_encoding dance.
- Change Hub#add_breadcrumb hint default from {} to nil. The empty hash
was allocated on every breadcrumb call even though most callers don't
use hints. Lazily materialized with || {} only when before_breadcrumb
callback is configured.
0 commit comments