Mobil app crashes: Stack trace | Community
Skip to main content
Level 2
September 10, 2021
Solved

Mobil app crashes: Stack trace

  • September 10, 2021
  • 2 replies
  • 2894 views

Hello everyone.

 

We monitor crashes on a mobile app using Adobe Analytics. The dev team has asked if they can see the stack trace for the crashes, to help them with debugging.

 

As far as I know, Analytics does not automatically collect stack traces on app crash through the lifecycle code.

 

Has anyone solved a similar requirement, and how did you solve it? My only suggestion right now is to somehow insert a trackAction in the app code to trigger when the crash happens, and send the stack trace as a non-linebreak string using context data. But I'm concerned about the character limit for eVars.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by PratheepArunRaj

Dear danielwalo,

First list down the details you need to track with Stack Trace. Stack Trace should contains bundle of information and thus planning what to get is important.

Hope you know how Crash is tracking in Adobe Analytics. When crash beacon is sent by LifeCycle trigger, append the traces through dimensions or set events based on the traces to track along with crashes. We can add dimensions and events to the LifeCycle triggers and thus I don't think we need to add seperate trackAction trigger.

Thank You, Pratheep Arun Raj B | Xerago | Terryn Winter Analytics 

2 replies

VaniBhemarasetty
Adobe Employee
Adobe Employee
September 10, 2021

@danielwalo Adobe analytics reports crashes already in a out of box metric for a mobile app.

App crashes are tracked as part of lifecycle metrics. Before you can track crashes, add the library to your project and implement lifecycle

 

You can read more about here for Andriod and iOS

https://experienceleague.adobe.com/docs/mobile-services/android/analytics-android/crashes.html?lang=en

https://experienceleague.adobe.com/docs/mobile-services/ios/analytics-ios/crashes.html?lang=en

 

 

Hope this helps

 

Level 2
September 10, 2021

We do use the crash metric from lifecycle, but I don't see any built-in support for logging stack traces.

PratheepArunRaj
Community Advisor and Adobe Champion
PratheepArunRajCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
September 10, 2021

Dear danielwalo,

First list down the details you need to track with Stack Trace. Stack Trace should contains bundle of information and thus planning what to get is important.

Hope you know how Crash is tracking in Adobe Analytics. When crash beacon is sent by LifeCycle trigger, append the traces through dimensions or set events based on the traces to track along with crashes. We can add dimensions and events to the LifeCycle triggers and thus I don't think we need to add seperate trackAction trigger.

Thank You, Pratheep Arun Raj B | Xerago | Terryn Winter Analytics 

Thank You, Pratheep Arun Raj B (Arun) | Xerago | Terryn Winter Analytics
Level 2
September 24, 2021

Thanks for the tip. 🙂