cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flutter Mobile App Instrumentation

zaid-bashir
Frequent Guest

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 Dynatrace().enterAction("Loading Checkout Page");
DynatraceAction mySubAction = myAction.enterAction("Cash On Delivery Clicked");
 
For Reporting Values
==============
    myAction.reportDoubleValue("totalPriceIncVAT",523.78 );
    myAction.reportEvent("Payment Initiated");
    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).
 
7 REPLIES 7

matthias_hochri
Dynatrace Pro
Dynatrace Pro

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.

Hi Matthias, 

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

Regards, 

Reginaldo.

 

 

@reginaldo_alves 

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

Hi @Nick-Montana,

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

Regards,

Reginaldo

 

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

zaid-bashir
Frequent Guest

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.

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 https://pub.dev/packages/dynatrace_flutter_plugin#httpClient or our dio extension.

Featured Posts