- Removed URL parameters from MobileRequestError and MobileRequest events. The concern being there may be confidential information contained in these parameters.
Now reports network request events to Insights! This feature must be enabled when starting the agent using
[NewRelic enableFeatures:NRFeatureFlag_NetworkRequestEvents]. When enabled all network calls will be tracked, in addition to network errors. These new events will be available under the MobileNetworkRequest eventType.
+[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:
+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>];
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.
lastInteractionattribute to all events, not just crash events.