03 May 2022
09:14 AM
- last edited on
04 May 2022
02: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.
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.
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?
@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.
Auto-instrumentation support for Jetpack Compose was added with version 8.263