# Flutter Mobile App Instrumentation

**URL:** <https://community.dynatrace.com/t/flutter-mobile-app-instrumentation/48552>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, user-actions, android, mobile-monitoring, ios\
**Created:** [October 25, 2024, 6:34am UTC](https://community.dynatrace.com/t/flutter-mobile-app-instrumentation/48552 "2024-10-25T06:34:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaid-bashir](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zaid-bashir/32/22651_2.png) [@zaid-bashir](https://community.dynatrace.com/u/zaid-bashir)\
**Post date:** [October 25, 2024, 6:34am UTC](https://community.dynatrace.com/t/flutter-mobile-app-instrumentation/48552/1 "2024-10-25T06:34:11Z")

</div>

Hi Good Morning,

While Instrumenting Flutter Based Hybrid Mobile App Using Dynatrace by keeping Automatic Instrumentation. I am not getting the user actions, Rest API’s, 3rd Party Dependencies etc.

But If I am doing the manual instrumentation like:

For User Actions

===========

DynatraceRootAction myAction =&nbsp;Dynatrace().enterAction(“Loading Checkout Page”);  
DynatraceAction mySubAction = myAction.enterAction(“Cash On Delivery Clicked”);For Reporting Values==============&nbsp; &nbsp; myAction.reportDoubleValue(“totalPriceIncVAT”,523.78 );&nbsp; &nbsp; myAction.reportEvent(“Payment Initiated”);&nbsp; &nbsp; myAction.reportError(“statusCode”, 201);Now My Question Is, Why the Dynatrace is not automatically capturing all these. If Dynatrace does the Automatic Instrumentation, is it for both Hybrid(Flutter, React Native) and Native(Android, iOS) or just for Native Apps (Android,iOS).

---

<div class="post-metadata">

**Author:** ![matthias\_hochri](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthias_hochri/32/15052_2.png) [@matthias\_hochri](https://community.dynatrace.com/u/matthias_hochri)\
**Post date:** [October 25, 2024, 10:09am UTC](https://community.dynatrace.com/t/flutter-mobile-app-instrumentation/48552/2 "2024-10-25T10:09:25Z")

</div>

The Dynatrace Flutter Plugin is currently not offering auto instrumentation on user action level. The plugin provides ways to automatically report web request, errors or navigations, but not buttons etc. - Still native iOS or Android parts are auto instrumented as usual.

---

<div class="post-metadata">

**Author:** ![zaid-bashir](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zaid-bashir/32/22651_2.png) [@zaid-bashir](https://community.dynatrace.com/u/zaid-bashir)\
**Post date:** [October 25, 2024, 10:17am UTC](https://community.dynatrace.com/t/flutter-mobile-app-instrumentation/48552/3 "2024-10-25T10:17:02Z")

</div>

Thanku For The Update.

If I am calling Rest API’s In My Mobile App using either dio/http networking package. Do I Need To Set Some Headers Or It Will Be Automatically Captured.

---

<div class="post-metadata">

**Author:** ![matthias\_hochri](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthias_hochri/32/15052_2.png) [@matthias\_hochri](https://community.dynatrace.com/u/matthias_hochri)\
**Post date:** [October 25, 2024, 10:32am UTC](https://community.dynatrace.com/t/flutter-mobile-app-instrumentation/48552/4 "2024-10-25T10:32:13Z")

</div>

A header is always needed. Otherwise a full monitoring experience including linked backend calls is not possible. Setting the header can be done manually or automatically. See&nbsp;[dynatrace\_flutter\_plugin | Flutter package](https://pub.dev/packages/dynatrace_flutter_plugin#httpClient)&nbsp;or our dio extension.

---

<div class="post-metadata">

**Author:** ![reginaldo\_alves](https://avatars.discourse-cdn.com/v4/letter/r/e68b1a/32.png) [@reginaldo\_alves](https://community.dynatrace.com/u/reginaldo_alves)\
**Post date:** [October 28, 2024, 5:56pm UTC](https://community.dynatrace.com/t/flutter-mobile-app-instrumentation/48552/5 "2024-10-28T17:56:32Z")

</div>

Hi Matthias,

I have a customer facing this same situation here. They are asking me whether dynatrace has plan to put&nbsp; the user action’s auto instrumentation on roadmap?

Regards,

Reginaldo.

---

<div class="post-metadata">

**Author:** ![Nick-Montana](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nick-montana/32/2051_2.png) [@Nick-Montana](https://community.dynatrace.com/u/Nick-Montana)\
**Post date:** [October 28, 2024, 6:43pm UTC](https://community.dynatrace.com/t/flutter-mobile-app-instrumentation/48552/6 "2024-10-28T18:43:19Z")

</div>

[@reginaldo\_alves](https://community.dynatrace.com/user/30647)

There is a difference between features offered through auto-instrumented RUM monitoring and self-instrumented Custom Applications. Self-Instrumentation allows developers to report data into dynatrace using openKit API methods and beacon-forwarding.

What are you customer’s needs? Auto-instrumentation is useful for conventional “user monitoring” like clickpaths, pageloads, etc. It doesn’t know exactly what data needs to be put in a table or bizevent for example. In that case the developer can integrate OpenKit to report that data from the source code

---

<div class="post-metadata">

**Author:** ![reginaldo\_alves](https://avatars.discourse-cdn.com/v4/letter/r/e68b1a/32.png) [@reginaldo\_alves](https://community.dynatrace.com/u/reginaldo_alves)\
**Post date:** [October 28, 2024, 6:57pm UTC](https://community.dynatrace.com/t/flutter-mobile-app-instrumentation/48552/7 "2024-10-28T18:57:19Z")

</div>

Hi [@Nick-Montana](https://community.dynatrace.com/user/48870),

Just auto-instrumentation for conventional “user monitoring” on user action level. Click/Touch on butons, pageloads, etc.

Regards,

Reginaldo

---

<div class="post-metadata">

**Author:** ![matthias\_hochri](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthias_hochri/32/15052_2.png) [@matthias\_hochri](https://community.dynatrace.com/u/matthias_hochri)\
**Post date:** [October 29, 2024, 7:00am UTC](https://community.dynatrace.com/t/flutter-mobile-app-instrumentation/48552/8 "2024-10-29T07:00:05Z")

</div>

Hi Reginaldo,

Classic auto instrumentation like for native mobile agents is not possible on Dart code level in Flutter. But we are already looking into a root widget based approach, which allows to track touch on buttons for example.

Matthias
