Sentry Android Sdk - Android Version Issue Grouping Problem

Hello,

I am using Sentry-android sdk for crash tracking in my app. I am capturing a message in the beginning of the application like this. Sentry.captureMessage(“SDK Started successfully”)

I am trying with Android 9 Samsung, Android 9 Huawei and Android 10 Samsung phone. In the Android dashboard of Sentry there are 2 groups of event appears. Although the message contents are the same, the stack trace differs.

What can I do to achieve one group of this issue?

I can set fingerprint like “message:“SDK Started successfully” → sentry-created-successfully-log” but I want to ignore thread from the stack trace.

  1. For Android 9 phones stack traces like this. (2 events 1 user)
    at dalvik.system.VMStack.getThreadStackTrace(VMStack.java)
    at java.lang.Thread.getStackTrace(Thread.java:1538)
    at com.kyncu.app.SampleApplication.onCreate
    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1154)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6222)
    at android.app.ActivityThread.access$1200(ActivityThread.java:237)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1785)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:7050)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)

  2. For Android 10 phone stack traces like this. (1 event 1 user)
    at dalvik.system.VMStack.getThreadStackTrace(VMStack.java)
    at java.lang.Thread.getStackTrace(Thread.java:1720)
    at com.kyncu.app.SampleApplication.onCreate
    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1190)
    at android.app.ActivityThread.handleMakeApplication(ActivityThread.java:7184)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7134)
    at android.app.ActivityThread.access$1600(ActivityThread.java:274)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2102)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loop(Looper.java:237)
    at android.app.ActivityThread.main(ActivityThread.java:8167)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)

Thanks.

@ozankyncu Can you link me to the issue on sentry.io?
They should have been linked together since the only in App stack trace is com.kyncu.app.SampleApplication.onCreate
Also, please share your SDK code snippet, thanks.
Feel free to raise an issue on GitHub - getsentry/sentry-java: A Sentry SDK for Java, Android and other JVM languages. with more details.

@marandaneto I have solved this problem with setting in app frame from SentryAndroid.

Thanks.

SentryAndroid.init(context) { options: SentryAndroidOptions →

options.addInAppInclude(“com.kyncu”);
** options.addInAppExlcude(“java.”);**

}

@ozankyncu Events are grouped per stack trace, in this case, it should not matter because apparently only at com.kyncu.app.SampleApplication.onCreate is from your App.
Can you share a link to these 2 issues so I can look them up?
Also, the SDK init code would help, thanks.