I performed some tests to measure the data consumption of the mobile RUM in a native android application instrumented via Dynatrace Android Gradle plugin.
So I just want to post my experience and results.
I used theese tools and I got a good experience, but you should use them under your responsability:
- Tpacketcapture, this app is available in play store, and this is a vpn app that capture the network traffic of the smartphone and save it in a .pcap file.
- WireShark for PC to analyze the .pcap file.
I performed 3 tests, 2 using wifi and 1 using mobile data. Then I checked the user sessions in Dynatrace Saas to determine the number of user action, errors, crash, events and session properties reported.
Then I analyzed each .pcap file, here it was a little difficult to identify the Dynatrace IPs so I tried with resolving the domain by running a nslookup command to the mobile beacon of the tenant, finally I got 5 distinct IPs.
Then I filtered the IPs and verified the payloads to be sure about the Dynatrace traffic nodes. Here I found some references to amazon and the mbeacon.
Here a result table:
I realized that there were incoming an outcoming traffic in the app for the Dynatrace communication.
App incoming traffic from dynatrace = mostly security validations, TLS certificates (aws, dynatrace)…
App outcoming traffic to dynatrace= mostly mobile rum reported data.
Finally
Data consumption for a user session with no crashes is around:
test 2
outcoming = 16.91 KB rounded to 17 KB
incoming = 47.91 KB rounded to 48 KB
Total = 64.82 KB rounded to 65 KB
User actions = 33
test 3
outcoming = 18.7 KB rounded to 19 KB
incoming = 48.1 KB rounded to 48 KB
Total = 66.8 KB rounded to 67 KB
User actions = 38
So, if I take the outcoming KB and divide by the number of user actions I get around 0,5 KB per user action.
Data consumption for a user session with crash is around:
test 1
outcoming = 24,7 KB rounded to 25 KB
incoming = 73,6 KB rounded to 74 KB
Total = 98.3 KB rounded to 98 KB
User actions = 16
The Data consumption increased, I think it could be because of the crash stacktrace reported.
So, if I take the outcoming KB and divide by the number of user actions I get around 1,5 KB per user action.
For ending this post, I tried to raise a equation using useraction as variable and depending if the user action have crash or doesn´t. But this is very very experimental an is based only in 3 tests so there aren’t enought data points.
The customer was concerned about data consumption, so this challenge was interesting and we got information that helped the customer to trust more in Dynatrace.