# Auto Instrumentation for Android Jetpack Compose Framework

**URL:** <https://community.dynatrace.com/t/auto-instrumentation-for-android-jetpack-compose-framework/35026>\
**Category:** Real User Monitoring\
**Tags:** technologies, android, mobile-monitoring\
**Created:** [May 3, 2022, 4:14pm UTC](https://community.dynatrace.com/t/auto-instrumentation-for-android-jetpack-compose-framework/35026 "2022-05-03T16:14:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rspeakman](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@rspeakman](https://community.dynatrace.com/u/rspeakman)\
**Post date:** [May 3, 2022, 4:14pm UTC](https://community.dynatrace.com/t/auto-instrumentation-for-android-jetpack-compose-framework/35026/1 "2022-05-03T16:14:55Z")

</div>

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** &nbsp;etc. However I do not see any of the finer grain detail like taps on buttons etc.&nbsp; I am using the **com.dynatrace.agent:agent-android:8.239.1.1002** &nbsp; dependency in the gradle build. The build.gradle configuration looks like

 ![Screen Shot 2022-05-03 at 12.03.24 PM.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/86ac2c16d448064a05bb7a90d9db2a72b6f2c9e4.png)

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [May 3, 2022, 7:31pm UTC](https://community.dynatrace.com/t/auto-instrumentation-for-android-jetpack-compose-framework/35026/2 "2022-05-03T19:31:22Z")

</div>

Unfortunately, Jetpack compose is not (yet) supported for auto-instrumentation. you can vote for the&nbsp;[product idee](https://community.dynatrace.com/post/185746).&nbsp; You must instrument your application manually at the moment by using the SDK.

---

<div class="post-metadata">

**Author:** ![rspeakman](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@rspeakman](https://community.dynatrace.com/u/rspeakman)\
**Post date:** [May 4, 2022, 3:11pm UTC](https://community.dynatrace.com/t/auto-instrumentation-for-android-jetpack-compose-framework/35026/3 "2022-05-04T15:11:34Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Thomas\_Wirth1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/thomas_wirth1/32/1776_2.png) [@Thomas\_Wirth1](https://community.dynatrace.com/u/Thomas_Wirth1)\
**Post date:** [May 5, 2022, 9:18am UTC](https://community.dynatrace.com/t/auto-instrumentation-for-android-jetpack-compose-framework/35026/4 "2022-05-05T09:18:21Z")

</div>

> [@rspeakman](https://community.dynatrace.com/user/43608)&nbsp;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.

---

<div class="post-metadata">

**Author:** ![Thomas\_Wirth1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/thomas_wirth1/32/1776_2.png) [@Thomas\_Wirth1](https://community.dynatrace.com/u/Thomas_Wirth1)\
**Post date:** [March 31, 2023, 1:46pm UTC](https://community.dynatrace.com/t/auto-instrumentation-for-android-jetpack-compose-framework/35026/5 "2023-03-31T13:46:05Z")

</div>

Auto-instrumentation support for Jetpack Compose was added with version 8.263
