Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Can I compose list of interaction in the row?

android
interactions

#1

Hi support team
I’m using newRelic v5.17.2 for android
Can I have many interaction in only one method then that result show on the chart group all of interaction I have? because I want to view all of duration time from init - call api - response render to view. I will create interaction for each step :slight_smile:
thank you.


#2

Hi @v.thanhtd16,

I understand you would like to create custom instrumentation and view duration times for a method with multiple interactions. I’d like to better understand exactly what you are wanting to record.

For example:
If you create a method, called LoadThePage().
Inside that method, there are three separate methods: A(), B(), and C()

Are you wanting all three to be uniquely captured by us and see 3 separate times recorded?
Example:
LoadThePage {
A() = 1sec
B() = .5 sec
C() = 1 sec }

Add up all three times and show it as a total for LoadThePage()?
Example:
LoadThePage() = 2.5 sec

Or are you looking to do something different than this? Please let me know so I can give you the best options on how to record these interactions.

-Danyel


#3

Yes that right. and if it can do it, Can I have create chart that collect three custom instrumentation?


#4

Hi @v.thanhtd16,

Yes! You can add a custom interaction to your method and track that data in Insights using NRQL queries. Below, I’ve linked documentation outlining how to do so, specifically, startInteraction() and endInteraction() for Android. These docs provide all the information to get your custom instrumentation started and how to view it once it’s been recorded.

Please let me know if you have any other questions!

Add Custom Data - https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile/maintenance/add-custom-data-new-relic-mobile#custom-interactions

startInteraction() - https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile-android/android-sdk-api/start-interaction

endInteraction() - https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile-android/android-sdk-api/end-interaction

Customize NRQL Charts - https://docs.newrelic.com/docs/insights/use-insights-ui/manage-dashboards/add-customize-nrql-charts

NRQL Overview - https://docs.newrelic.com/docs/insights/nrql-new-relic-query-language/using-nrql/introduction-nrql

-Danyel