Improvements
- Adds new API
+[NewRelic recordCustomEvent:(NSString*)eventType withAttributes:(NSDictionary*)attributes]
This method replaces +[NewRelic recordEvent:(NSString*)name withAttributes:(NSDictionary*)attributes]
which is now deprecated, with the intention of removal in the future. The new API creates a new event with an event type specified by the eventType
parameter, whereas the deprecated method create a event with the Mobile event type and an attribute with the name 'name' and the value of the name
parameter. This change satisfies customer requests for:
Improved Insights query performance
Defining custom event types
Finding custom event in Insights more easily
Flexibility to define data retention per custom event type
Adds helper method
+setUserId:
to NewRelic.h which sets a session attribute,userId
, with the passed value. This method is effectively the same as[NewRelic setAttribute:@"userId" value:<username>];
This release adds a new Insights event type:
MobileRequestError
. This new event tracks networking and http errors during the app's lifecycle, adding the ability to slice and dice network error data! More details can be found at Mobile Request Error Events.This agent now applies the
lastInteraction
attribute to all events, not just crash events.The applications build value is now added as a default session attribute:
appBuild
.
Improvements
- Adds new API
+[NewRelic recordCustomEvent:(NSString*)eventType withAttributes:(NSDictionary*)attributes]
This method replaces +[NewRelic recordEvent:(NSString*)name withAttributes:(NSDictionary*)attributes]
which is now deprecated, with the intention of removal in the future. The new API creates a new event with an event type specified by the eventType
parameter, whereas the deprecated method create a event with the Mobile event type and an attribute with the name 'name' and the value of the name
parameter. This change satisfies customer requests for:
- Improved Insights query performance
- Defining custom event types
- Finding custom event in Insights more easily
- Flexibility to define data retention per custom event type
Improvements
- This release adds a new Insights event type:
MobileRequestError
. This new event tracks networking and http errors during the app's lifecycle, adding the ability to slice and dice network error data! More details can be found at Mobile Request Error Events. - This agent now applies the
lastInteraction
attribute to all events, not just crash events. - The applications build value is now added as a default session attribute:
appBuild
.
Fixes
- Corrects WKWebView instrumentation bug that results in the NavigationDelegate method,
webView:didCommitNavigation:
being called instead ofwebView:didStartProvisionalNavigation:
. This would result in a crash if the former is implemented in the delegate, but the latter is not.
Improvements
- Adds limited network monitoring for WKWebView. Due to constraints within the WKWebView API data
sent
andreceived
counts are not available.
Improvements
- Adds helper method +setUserId: to NewRelic.h which sets a session attribute,
userId
, with the passed value. This method is effectively the same as[NewRelic setAttribute:@"userId" value:<username>];
Fixes
- Corrected crashing issue the affected some ARMv7s device.
Improvements
- This version of the iOS agent is built with Xcode 8, and Xcode 8 is required to build with this agent. If earlier versions of Xcode are required use iOS Agent 5.8.1.
Improvements
- Added support for control characters in Insights data. Control characters will now be displayed by their common escaped character representation. For example: an 'end-of-text' control character will be displayed as '^C'.
Fixes
- Removed instrumentation of ASI networking framework. This prevents collisions with Apple's private API scans, which produces a false positive when scanning our instrumentation of this library. We recommend anyone still using ASI for networking to use our custom network instrumentation tools going forward.
Improvements
- Added support for control characters in Insights data. Control characters will now be displayed by their common escaped character representation. For example: an 'end-of-text' control character will be displayed as '^C'.
Fixes
- Removed instrumentation of ASI networking framework. This prevents collisions with Apple's private API scans, which produces a false positive when scanning our instrumentation of this library. We recommend anyone still using ASI for networking to use our custom network instrumentation tools going forward.
Information
- This release is a "roll-forward" of release 5.7.1. Agent release 5.8.0 was discovered to have compatibility issues with a small set of devices and has been removed.