rollbar / rollbar-ios

Objective-C library for crash reporting and logging with Rollbar.
https://docs.rollbar.com/docs/ios
MIT License
65 stars 61 forks source link

Question: How to include telemetry `extraData` and then viewing it. #347

Closed teejayhh closed 2 years ago

teejayhh commented 2 years ago

Hello I am wondering how we can make use of the extraData argument, which is available for many of the telemetry functions.

rollBar.recordErrorEvent(for: level.rollbarLevel, message: message, extraData: extraData)

extraData takes and optional dictionary [String: Any]? which we use to augment the event with a few other useful information. Unfortunately I can not see any of this data in the userinterface.

rollbar.recordErrorEvent(for: .warning, message: "Web View failed to navigate", extraData: ["url": webView.url?.absoluteString ?? "", "error": error.localizedDescription])
Screen Shot 2021-10-01 at 9 10 52 am

There is no way to see this extra information or I am missing something.

As a workaround we could dump everything into the message, but that would be messy.

Are we doing something wrong or do we need enable something somewhere ?

Cheers Thomas

akornich commented 2 years ago

@teejayhh , did you look at the telemetry events reported within the raw payload JSON of an occurrence? All the relevant telemetry events (including their extra data) should appear there.

teejayhh commented 2 years ago

Ah, ok I can see the information on the occurrence. Thanks for your help.

akornich commented 2 years ago

@teejayhh , you are welcome! Please, plan on switching to our alternative SDK for Apple platforms: https://github.com/rollbar/rollbar-apple All the new feature development is happening there. Rollbar-iOS is already marked for retirement.