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
fix(dart): Catch client exceptions in HttpTransport.send (#3490)
* fix(dart): Catch client exceptions in HttpTransport.send
Prevents unhandled exceptions like `ClientException: Connection closed
before full header was received` from crashing the host application.
The error is logged via internalLogger and only rethrown in
automatedTestMode.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Update
* Update CHANGELOG
* Update
* Update
* Implement lost event recording in HttpTransport for network errors
Enhance the HttpTransport class to record lost events when a network error occurs during envelope transmission. This includes logging discarded events for both Sentry transactions and spans. Add corresponding tests to verify the functionality when client exceptions are thrown.
* Refactor lost event handling in HttpTransport and TransportUtils
Consolidate lost event recording logic into TransportUtils for better reusability. Update HttpTransport to utilize the new method for recording lost events on network errors. Enhance logging for response statuses, including rate limit handling. Remove redundant lost event recording method from HttpTransport.
* Update
* Update
* Rename to recordLostEvents
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments