newrelic / newrelic-ios-agent-spm

This repository hosts the Swift Package Manager deployment of the iOS agent
Apache License 2.0
15 stars 9 forks source link

Better Error with Custom Events #16

Open yoojinsca opened 1 year ago

yoojinsca commented 1 year ago

Please provide a better error when sending a custom event.

Summary

NewRelic.recordCustomEvent only returns a false if it failed.

Can it return the actual error instead?

Possible Solution

NewRelic.recordCustomEvent(eventType: String, attributes:[NSObject : AnyObject]!) -> Error?

Additional context

It's frustrating trying to understand why the event wasn't recorded. The documentation does not list the possible reasons. In some cases, the NewRelic logs don't seem to reveal too much either.