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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...