You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Use the Application Insights Profiler settings pane to see Profiler status and start profiling sessions
4
4
ms.contributor: Charles.Weininger
5
5
ms.topic: conceptual
6
-
ms.date: 08/09/2022
6
+
ms.date: 09/22/2023
7
7
---
8
8
9
9
# Configure Application Insights Profiler
@@ -20,13 +20,13 @@ To open the Application Insights Profiler settings pane, select **Performance**
20
20
21
21
You can view Profiler traces across your Azure resources via two methods:
22
22
23
-
-By the**Profiler** button:
23
+
-The**Profiler** button:
24
24
25
25
Select **Profiler**.
26
26
27
27
:::image type="content" source="./media/profiler-overview/profiler-button-inline.png" alt-text="Screenshot that shows the Profiler button on the Performance pane." lightbox="media/profiler-settings/profiler-button.png":::
28
28
29
-
-By operation:
29
+
-Operations:
30
30
31
31
1. Select an operation from the **Operation name** list. **Overall** is highlighted by default.
32
32
1. Select **Profiler traces**.
@@ -49,6 +49,7 @@ Within Profiler, you can configure and view Profiler. The **Application Insights
49
49
**Recent profiling sessions** | Displays information about past profiling sessions, which you can sort by using the filters at the top of the page.
50
50
51
51
## Profile now
52
+
52
53
Select **Profile now** to start a profiling session on demand. When you select this link, all Profiler agents that are sending data to this Application Insights instance start to capture a profile. After 5 to 10 minutes, the profile session is shown in the list.
53
54
54
55
To manually trigger a Profiler session, you need, at minimum, *write* access on your role for the Application Insights component. In most cases, you get write access automatically. If you're having issues, you need the **Application Insights Component Contributor** subscription scope role added. For more information, see [Resources, roles, and access control in Application Insights](../app/resources-roles-access-control.md).
@@ -98,6 +99,7 @@ CPU % | Percentage of CPU used while Profiler was running.
98
99
Memory % | Percentage of memory used while Profiler was running.
99
100
100
101
## Next steps
102
+
101
103
[Enable Profiler and view traces](profiler-overview.md?toc=/azure/azure-monitor/toc.json)
Copy file name to clipboardExpand all lines: articles/azure-monitor/profiler/profiler-trackrequests.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,13 @@ title: Write code to track requests with Application Insights | Microsoft Docs
3
3
description: Write code to track requests with Application Insights so you can get profiles for your requests.
4
4
ms.topic: conceptual
5
5
ms.custom: devx-track-csharp
6
-
ms.date: 08/09/2022
6
+
ms.date: 09/22/2023
7
7
ms.reviewer: charles.weininger
8
8
---
9
9
10
10
# Write code to track requests with Application Insights
11
11
12
-
Application Insights needs to track requests for your application to provide profiles for your application on the **Performance** page in the Azure portal.
13
-
14
-
For applications built on already-instrumented frameworks (like ASP.NET and ASP.NET Core), Application Insights can automatically track requests.
12
+
Application Insights needs to track requests for your application to provide profiles for your application on the **Performance** page in the Azure portal. For applications built on already-instrumented frameworks (like ASP.NET and ASP.NET Core), Application Insights can automatically track requests.
15
13
16
14
For other applications (like Azure Cloud Services worker roles and Azure Service Fabric stateless APIs), you need to track requests with code that tells Application Insights where your requests begin and end. Requests telemetry is then sent to Application Insights, which you can view on the **Performance** page. Profiles are collected for those requests.
In this article, you learn how to run Application Insights Profiler on your Azure virtual machine (VM) or Azure virtual machine scale set via three different methods. With any of these methods, you:
13
+
In this article, you learn how to run Application Insights Profiler on your Azure virtual machine (VM) or Azure virtual machine scale set via three different methods:
14
+
15
+
- Visual Studio and Azure Resource Manager
16
+
- PowerShell
17
+
- Azure Resource Explorer
18
+
19
+
With any of these methods, you:
14
20
15
21
- Configure the Azure Diagnostics extension to run Profiler.
16
22
- Install the Application Insights SDK on a VM.
@@ -19,8 +25,6 @@ In this article, you learn how to run Application Insights Profiler on your Azur
19
25
20
26
## Prerequisites
21
27
22
-
You need:
23
-
24
28
- A functioning [ASP.NET Core application](/aspnet/core/getting-started).
25
29
- An [Application Insights resource](../app/create-workspace-resource.md).
26
30
- To review the Azure Resource Manager templates (ARM templates) for the Azure Diagnostics extension:
@@ -60,7 +64,7 @@ You need:
60
64
61
65
You can enable Profiler by any of three ways:
62
66
63
-
- Within your ASP.NET Core application by using an Azure Resource Manager template and Visual Studio. We recommend this method.
67
+
- Within your ASP.NET Core application by using an Azure Resource Manager template and Visual Studio. **Recommended.**
64
68
- By using a PowerShell command via the Azure CLI.
0 commit comments