If you’ve ever used a mobile app to do business, you understand the importance of having a great mobile experience. If you’re using a restaurant app to order food and you run into trouble checking out, what are the chances you order from there again? What if you’re using an app to log service tickets and the details don’t show up correctly? A poor experience quickly turns customers away, which could lead to lost revenue.
According to App Annie’s State of Mobile 2021, time spent in business apps grew 275% year-over-year in Q4 2021. That means having a reliable mobile app is increasingly becoming a must-have versus a nice-to-have. This requirement is especially true if most of your customers interact with your business through mobile devices. Even if you don’t support a mobile app today, having a platform that can support mobile traces may be critical to your growth in the future.
So how does distributed tracing factor into running reliable mobile apps? You use distributed tracing to track requests as they originate on mobile devices and travel to your backend services, which might be owned and managed by different teams. Without distributed tracing in place, you may understand there’s an error, but the troubleshooting process is slow due to a lack of visibility into the issue’s source.
Distributed tracing with New Relic mobile monitoring
If you’re not already familiar with New Relic distributed tracing, check out this blog post on getting started. Distributed tracing helps you instrument, propagate context, record, and visualize requests through complex, distributed systems.
With the addition of distributed tracing for mobile monitoring in New Relic One, mobile app engineers responsible for app performance can quickly discover which backend services are impacting the customer experience. Similarly, when a backend service is experiencing an issue, backend engineers now understand how that issue affects customers. Both frontend and backend developers can now see traces that originate from a mobile device.
What if I already have mobile agents deployed?
If you haven’t updated your mobile agents lately, you’ll need to. Mobile distributed tracing is enabled by default, so you should start seeing distributed tracing data once your agents are updated.
How to incorporate distributed traces with New Relic mobile monitoring
If you’re not already using New Relic mobile agents to monitor your mobile applications, follow these instructions to get set up with mobile distributed tracing:
1. Review the transition guide and distributed tracing documentation.
2. Deploy the latest mobile agent to your mobile applications.
3. After it is installed or updated, you should start seeing mobile distributed tracing data in New Relic One.
You can find the distributed tracing navigation tab when looking at an individual mobile application. (It’s on the left.)
You can also access mobile traces by navigating to Browse Data > Traces and then in the Find traces where spans contain search field, enter mobileApp.name is not null. This filters all of the traces that originate from mobile spans.
Troubleshooting mobile performance with distributed tracing
Now that you have distributed tracing enabled for mobile, here’s how you can view those trace details to investigate performance issues.
- Navigate to view a mobile app via the Mobile tab.
2. On the left navigation, select Distributed Tracing to see all trace groups originating in that mobile app.
3. Select the trace group you’re interested in. A window slides in that shows all the spans for that group.
4. Select the specific trace you’re interested in. A window slides in that shows the backend spans supporting the service.
Note that when services aren’t instrumented, you won’t see data. If you see services that are not reporting data, follow these steps to get them instrumented.
5. Select the mobile span (identified by the mobile icon) to see the attributes from the mobile request. This gives you a treasure trove of information about what the backend services are receiving from the front end.
6. The mobile trace captures everything from the app name and version down to the specific device and user.
다음 단계
Learn more about distributed tracing for mobile
There’s a lot more to learn about New Relic mobile monitoring with distributed tracing. Read our documentation, request a demo or sign up for a free trial today.
이 블로그에 표현된 견해는 저자의 견해이며 반드시 New Relic의 견해를 반영하는 것은 아닙니다. 저자가 제공하는 모든 솔루션은 환경에 따라 다르며 New Relic에서 제공하는 상용 솔루션이나 지원의 일부가 아닙니다. 이 블로그 게시물과 관련된 질문 및 지원이 필요한 경우 Explorers Hub(discuss.newrelic.com)에서만 참여하십시오. 이 블로그에는 타사 사이트의 콘텐츠에 대한 링크가 포함될 수 있습니다. 이러한 링크를 제공함으로써 New Relic은 해당 사이트에서 사용할 수 있는 정보, 보기 또는 제품을 채택, 보증, 승인 또는 보증하지 않습니다.