Azure App Service Tracing: Implementation Guide

Implement Tracing for Your Azure App Service App

Question

You have an Azure App Service app.

You need to implement tracing for the app. The tracing information must include the following:

-> Usage trends

-> AJAX call responses

-> Page load speed by browser

-> Server and browser exceptions

What should you do?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D

For web pages, Application Insights JavaScript SDK automatically collects AJAX calls as dependencies.

Note: Some of the things you can track or collect are:

What are the most popular webpages in your application, at what time of day and where is that traffic coming from?

Dependency rates or response times and failure rates to find out if there's an external service that's causing performance issues on your app, maybe a user is using a portal to get through to your application and there are response time issues going through there for instance.

Exceptions for both server and browser information, as well as page views and load performance from the end users' side.

https://azure.microsoft.com/en-us/blog/ajax-collection-in-application-insights/ https://blog.pragmaticworks.com/what-is-application-insights

The correct answer is D. Enable the Azure Application Insights site extension.

Explanation: Azure Application Insights is a powerful Application Performance Management (APM) service that can help you monitor your web application's performance and identify issues. By enabling the Azure Application Insights site extension, you can easily collect and analyze telemetry data for your Azure App Service app, including the information required for tracing.

To enable the Azure Application Insights site extension, follow these steps:

  1. In the Azure portal, navigate to your App Service app.
  2. Click on the "Extensions" menu item.
  3. Click on the "Add" button.
  4. Select the "Azure Application Insights" extension from the list.
  5. Follow the prompts to configure the extension.

Once the extension is installed and configured, you can start using Application Insights to monitor your app. Application Insights automatically tracks usage trends, AJAX call responses, page load speed by browser, server exceptions, and browser exceptions. You can view this data in the Azure portal, and you can also set up alerts and dashboards to help you monitor your app's performance.

Option A (Configure IIS logging in Azure Log Analytics) is incorrect because while IIS logging can provide some information about app performance, it does not provide the detailed tracing information required in the question.

Option B (Configure a connection monitor in Azure Network Watcher) is incorrect because a connection monitor is used to monitor network connectivity, not app performance.

Option C (Configure custom logs in Azure Log Analytics) is incorrect because while custom logs can be useful for collecting specific types of data, they are not necessary for the tracing information required in the question, which is automatically collected by Application Insights.