Improvements and enhancements
- Session Replay now captures text in React Native apps that use the legacy architecture. Text drawn by
RCTTextViewused to be recorded as an empty view. It is now captured and masked the same way asRCTParagraphComponentViewtext in the New Architecture.
Bug fixes
- Fixed Session Replay uploading the content of blocked views. A view blocked with the
nr-blockaccessibility identifier was drawn as a black box, but its text was still sent with the replay, and was readable on top of the box in any color other than black. A blocked image view also kept its image data when image masking was off. Blocked views are now recorded at capture time as an empty box, with no text, no image and no subviews. A view that becomes blocked while on screen now updates in the replay right away, instead of showing its old content until the next full snapshot. This issue was present in 7.7.10 and earlier. - Fixed a rare crash (
SIGSEGV, orNSInvalidArgumentExceptionfor an unrecognized selector) in+[NRMAHTTPUtilities addCrossProcessIdentifier:], usually within a few seconds of a session starting while the app made network requests. Every instrumentedNSURLSessionrequest read the agent's harvester configuration and its cross-process ID without a lock. At the same time, the harvest thread replaced that configuration and cleared the ID at the start of the session, so a request could use an object that had just been freed. Both are now read and replaced safely across threads. A similar race when+[NewRelic shutdown]was called during a harvest is also fixed. This issue was present in 7.7.10 and earlier. - Fixed network requests going unrecorded after the agent received a
/connectresponse it couldn't parse. The agent stored an empty configuration until the next harvest, and it dropped any requests recorded in that window. The agent now keeps its existing configuration. This issue was present in 7.7.10 and earlier. - Fixed handled exceptions saved on the device being dropped after an app update, with the server error "Failed to resolve data: MobileAppVersion". Saved handled exceptions were uploaded at the start of the next session, before the agent had connected for the app's new version. They are now uploaded after the connection completes. This issue was present in 7.7.10 and earlier.
- Fixed handled exceptions recorded before an app update being reported under the new app version. A saved handled exception is now uploaded under the app version it was recorded in. This issue was present in 7.7.10 and earlier.
- Fixed
recordCustomEvent:accepting reserved event types (Mobile,MobileCrash,MobileRequest,MobileRequestError,MobileSession,MobileBreadcrumb) when the new event system (NRFeatureFlag_NewEventSystem) was enabled. The default event system already rejected these types, so whether an event was sent depended on the feature flag. Both event systems now reject them. - Fixed the dSYM upload tool (
run-symbol-tool) failing to convert a dSYM to a symbol map when a single source line covered 1 MB (0x100000) or more of code. The tool then fell back to uploading the full dSYM. It now converts these lines to a symbol map.