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

Auto-Instrument onResume in Activity transactions

Open romtsn opened this issue 2 years ago • 2 comments

Description

We could create spans for each of the callbacks to better surface the performance of each method if they involve some heavy computations (similar to how sentry-cocoa does it for viewDidLoad, viewDidAppear and so on).

Android API 29 and above have new callbacks in the AcitivtyLifecycleCallbacks class (onActivityPreCreated/onActivityPostCreated and friends), so we could utilize them when implementing it.

romtsn avatar Feb 14 '23 21:02 romtsn

Let's start small and use the existing API 29+ callbacks in the first iteration. And it could be a good chance to refactor our ActivityLifecycleIntegration.

markushi avatar Feb 15 '23 15:02 markushi

Let's schedule it for the next quarter @kahest

stefanosiano avatar Apr 05 '23 14:04 stefanosiano