All Apps and Add-ons

Why is the Splunk MINT SDK for iOS 5.0.0 not reporting the user_id on unhandled crash exceptions?

mterreno
Engager

I'm using the Splunk MINT SDK for iOS v 5.0.0.

In a crash report generated like:

[NSException raise:@"TestSplunkRaise" format:@"raise exception"];

Without a try-catch. I don't receive the user_id on my splunk dashboard,

But when I create a handled exception like:

MintLogException(exception, nil);

I see the user_id reported on the crash log in the dashboard.

How do you recommend setting the SDK or my application so I receive the user_id in all crash reports, both handled and unhandled?

Thank you

mterreno
Engager

Hi -

In Android, we prepare the crash report when the app and SDK are still alive and on "last breath". Therefore we report the user identifier if SetUserIdentifier is called before the crash.

In iOS, when the app is crashing we record the crash details without any additional metadata and let the app exit. When application is started again after the crash, we submit the crash data saved from the crash happened before and additional metadata (such as user ID) known at the time of submission. Please make sure to set user ID before the init.

One way to create consistency is to leave breadcrumb with user ID. The information will be in breadcrumbs field. Breadcrumbs are attached to the corresponding crash report. Number of breadcrumbs is limited to 16 and older breadcrumbs will be dropped.

http://docs.splunk.com/Documentation/MintAndroidSDK/5.0.x/DevGuide/Reportuser-specificdata
http://docs.splunk.com/Documentation/MintIOSSDK/5.0.x/DevGuide/Adduseridentifiers
http://docs.splunk.com/Documentation/MintIOSSDK/5.0.x/DevGuide/Addbreadcrumbstocrashreports
http://docs.splunk.com/Documentation/MintAndroidSDK/5.0.x/DevGuide/Addbreadcrumbtocrashreports
Best.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...