03 May 2022 05:14 PM - last edited on 04 May 2022 10:24 AM by MaciejNeumann
Is auto instrumentation supported for Android apps built with the Jetpack Compose framework? I have a native app built with Jetpack Compose version 1.0.5 on Android Studio Bumblebee | 2021.1.1 Patch 2. The gradle plugin is configured to auto instrument the app and I am able to see high level information being reported. I can see the things like Loading XYZApplication, Loading XYZActivity etc. However I do not see any of the finer grain detail like taps on buttons etc. I am using the com.dynatrace.agent:agent-android:8.239.1.1002 dependency in the gradle build. The build.gradle configuration looks like
Solved! Go to Solution.
03 May 2022 08:31 PM
Unfortunately, Jetpack compose is not (yet) supported for auto-instrumentation. you can vote for the product idee. You must instrument your application manually at the moment by using the SDK.
04 May 2022 04:11 PM
Thank you for the information. One follow up question regarding the manual instrumentation approach. How do the UserPrivacyOptions work for manual instrumentation? For example if I set the DataCollection level to OFF, will manual instrumentation honor that?
05 May 2022 10:18 AM
@rspeakman wrote:Thank you for the information. One follow up question regarding the manual instrumentation approach. How do the UserPrivacyOptions work for manual instrumentation? For example if I set the DataCollection level to OFF, will manual instrumentation honor that?
Yes, the agent will discard all generated monitoring data regardless if it is monitored manually or by auto-instrumentation.
31 Mar 2023 02:46 PM - edited 31 Mar 2023 02:47 PM
Auto-instrumentation support for Jetpack Compose was added with version 8.263