getsentry/sentry-java

Auto release detection not working

Opened this issue · 5 comments

Integration

sentry-android

Build System

Gradle

AGP Version

5.1.0

Proguard

Enabled

Version

8.1.0 and 7.13.0

Steps to Reproduce

  1. Configure the Android SDK as:
plugins {
id 'io.sentry.android.gradle' version '5.1.0'
}
...
sentry{
includeProguardMapping.set(true)
autoUploadProguardMapping.set(true)
tracingInstrumentation.enabled.set(false)

in AndroidManifest.xml:

<application>
<meta-data
android:name="io.sentry.dsn"
android:value="_MY_DSN_" />
</application>

Run the app

Expected Result

All events sent by the SDK have the default release tag associated with them. This release is based on the app/build.gradle configuration {applicationId}@{versionName}+{versionCode}.

Actual Result

Some events are missing release tag. The issue was originally reported in this internal ticket where events are not filtered by the release filter.

The project contains multiple grade files which might be root cause.

It's worth mentionning that the event.release is null, as well as the context.app.appversion/build, so it seems our backfilling logic is not working as intented.

@markushi @stefanosiano do we have an update on this issue?

@rodolfoBee could you verify that the scope persistence isn't disabled via options? By default it's turned on, but it can be disabled via options.setEnableScopePersistence(false), which would have the side effect of not seeing any releases for ANR events.

can this be an instance of this? #3287

The SDK is initialised using the manifest with the DSN only, setEnableScopePersistence is not set to false there.