sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Android - Add possibility to remove deadline timeout for activity transactions

Open zhukic opened this issue 9 months ago • 9 comments

Problem Statement

Sentry Android SDK version - 8.2.0

Hi, If the io.sentry.traces.activity.auto-finish.enable flag is disabled, the transaction is automatically finished in 30 seconds with the DEADLINE_EXCEEDED result.

Could you add the possibility of removing this deadline? We'd like to track activities throughout their lifetime.

Solution Brainstorm

No response

zhukic avatar Mar 12 '25 10:03 zhukic

We'd like to track activities throughout their lifetime.

@zhukic Could you elaborate on this, and which benefits you expect from a transaction bound to the activity lifecycle?

markushi avatar Mar 12 '25 10:03 markushi

@markushi We want to track the slow/frozen frame rates during full activity lifecycle

zhukic avatar Mar 12 '25 11:03 zhukic

@markushi Hi,

Any thoughts about this?

zhukic avatar Mar 14 '25 08:03 zhukic

@zhukic We're still discussing about this internally, as we have do have a few features coming up which could provide slow/frozen frames in a more granular level (~being able to let you when a frozen frame occured during your activity lifecycle), but there's nothing set in stone right now. I'll let you know once I have some more concrete answer for you!

markushi avatar Mar 14 '25 10:03 markushi

let's expose the deadlineTimeout option in SentryOptions to allow overriding it. And make it clear it applies only to auto-instrumented txs.

romtsn avatar Mar 19 '25 14:03 romtsn

Hi, What's the status of this feature?

zhukic avatar Apr 22 '25 15:04 zhukic

We're still on this, it's already marked as TODO so you can expect this to be implemented very soon.

markushi avatar Apr 23 '25 07:04 markushi

Hi, What's the status of it?

zhukic avatar Jun 02 '25 09:06 zhukic

@zhukic no update yet, we'll follow up here when we start working on it and/or this has been released

kahest avatar Jun 03 '25 14:06 kahest

@zhukic we added a deadlineTimeout option, which can be set to 0 to disable it This will land in version 8.18.0, probably sometime next week

stefanosiano avatar Jul 18 '25 13:07 stefanosiano

@stefanosiano Thank you!

zhukic avatar Jul 21 '25 13:07 zhukic