18 Jul 2024 10:40 PM - last edited on 24 Jul 2024 09:31 AM by GosiaMurawska
Hello everyone,
I'm currently trying to query mobile request data and filter those queries by a custom attribute / tag. However, I'm running into a couple of issues so any assistance would be much appreciated.
What I've tried:
It seems like there are a lot more limitations when it comes to mobile / custom data analysis for whatever reason or I could just be missing something? What would be a good alternative for what I'm trying to accomplish?
19 Jul 2024 08:24 AM
Yes, Dynatrace is not Splunk - post-addition data is a pain and available with some limits only in Grail.
In your case, I would fix action properties and create calculated metrics from it.
Another option is to send logs to grail and and then build metrics on the top from logs - it will give you a bit of freedom for selection dimensions.
19 Jul 2024 04:33 PM - edited 19 Jul 2024 04:53 PM
Hello Slawa, thank you for the reply!
Creating action properties was my first instinct and would work to add a custom attribute you can use to filter. However, as mentioned above, user action has null values for most properties for mobile applications. So if you need to use numeric data (like response time, latency, etc...) that has a null value, you would have to manually calculate them and assign them to the user action. Similar issue arises for creating metrics from logs. Judging from the waterfall analysis of user actions, values for response time and such are clearly being stored somewhere, but I have no idea how I would query them and filter those queries by custom attributes.
I was wondering if there was a feature built into Dynatrace that would make this less cumbersome like how New Relic has the Mobile Request object you can interface with to access the values you would need out of the box.
19 Jul 2024 05:12 PM
I had same issue on one of my project with mobile app - try custom actions where you will control all logic.
I don't know your platform but if it is android and used for instance retrofit for dispatching requests - developers can wrap it and fire action /properties on response.
It is still not perfect because of huge limitation of calculated metrics(like it is applicable for Key user actions only)
I consider that Grail is more powerful due to parsing rules and metrics extraction, but still not sure that is a good idea from a security perspective to send log from client (instead of server). All tokens/client ids are easily extracted from app code. Maybe we could get dynatrace security guidance in this case.
19 Jul 2024 05:42 PM - edited 19 Jul 2024 05:43 PM
That seems like the only alternative from what I can tell, but I wanted to be sure before moving forward with that option. The issue with that though is you would have to manually calculate some values you need--like latency for instance--because the timer on the one agent SDK doesn't actually report those values to user sessions and actions for mobile applications.
Unless I'm missing something, Grail also doesn't seem useful for our purposes because created metrics--whether they are custom user action / session metrics or calculated custom metrics--are not detectable in Grail for whatever reason.
Good point on the security issue. I believe maybe Active Gate can be used to circumvent the security concerns, but I haven't looked into it thoroughly yet. Would like guidance on that too for sure.