newrelic / newrelic-cordova-plugin

A Cordova plugin for the New Relic Mobile SDKs
Apache License 2.0
18 stars 66 forks source link

Add optional attributes for recordError #69

Closed mchavez-newrelic closed 1 year ago

mchavez-newrelic commented 1 year ago

Context

This PR allows optional custom attributes for recordError in the Cordova plugin.

Description

The Javascript and native (Objective-C, Java) code for recordError has been modified to handle an additional optional parameter for custom attributes to be recorded. The unit tests for recordError have been modified to test this new functionality of recording custom attributes. In addition, the README has been updated to reflect the update to recordError.