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
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/asp-net-core.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ The [Application Insights SDK for ASP.NET Core](https://nuget.org/packages/Micro
28
28
***Deployment method**: Framework dependent or self-contained.
29
29
***Web server**: IIS (Internet Information Server) or Kestrel.
30
30
***Hosting platform**: The Web Apps feature of Azure App Service, Azure VM, Docker, Azure Kubernetes Service (AKS), and so on.
31
+
***.NET Core Runtime version**: 1.XX, 2.XX or 3.XX
31
32
***IDE**: Visual Studio, VS Code, or command line.
32
33
33
34
> [!NOTE]
@@ -356,9 +357,14 @@ Note that the above does not prevent any auto collection modules from collecting
356
357
357
358
## Frequently asked questions
358
359
360
+
### Does Application Insights support ASP.NET Core 3.0?
361
+
362
+
Yes. Update to [Application Insights SDK for ASP.NET Core](https://nuget.org/packages/Microsoft.ApplicationInsights.AspNetCore) version 2.8.0 or higher. Older versions of the SDK do not support ASP.NET Core 3.0.
363
+
Also, if you are using Visual Studio based instructions from [here](#enable-application-insights-server-side-telemetry-visual-studio), please update to the latest version of Visual Studio 2019 (16.3.0) to onboard. Previous versions of Visual Studio do not support automatic onboarding.
364
+
359
365
### How can I track telemetry that's not automatically collected?
360
366
361
-
Get an instance of `TelemetryClient` by using constructor injection, and call the required `TrackXXX()` method on it. We don't recommend creating new `TelemetryClient` instances in an ASP.NET Core application. A singleton instance of `TelemetryClient` is already registered in the `DependencyInjection` container, which shares `TelemetryConfiguration` with rest of the telemetry. Creating a new `TelemetryClient` instance is recommended only if it needs a configuration that's separate from the rest of the telemetry.
367
+
Get an instance of `TelemetryClient` by using constructor injection, and call the required `TrackXXX()` method on it. We don't recommend creating new `TelemetryClient` instances in an ASP.NET Core application. A singleton instance of `TelemetryClient` is already registered in the `DependencyInjection` container, which shares `TelemetryConfiguration` with rest of the telemetry. Creating a new `TelemetryClient` instance is recommended only if it needs a configuration that's separate from the rest of the telemetry.
362
368
363
369
The following example shows how to track additional telemetry from a controller.
364
370
@@ -389,7 +395,7 @@ For more information about custom data reporting in Application Insights, see [A
389
395
390
396
Yes, enablingApplicationInsightswiththismethodisvalid. ThistechniqueisusedinVisualStudioonboardingandintheWebAppsextensions. However, werecommendusing `services.AddApplicationInsightsTelemetry()` becauseitprovidesoverloadstocontrolsomeconfiguration. Bothmethodsdothesamethinginternally, soifyoudon'tneedtoapplycustomconfiguration, youcancalleithermethod.
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/azure-web-apps.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -321,6 +321,9 @@ Below is our step-by-step troubleshooting guide for extension/agent based monito
321
321
> [!NOTE]
322
322
> Java and Node.js applications are only supported on Azure App Services via manual SDK based instrumentation and therefore the steps below do not apply to these scenarios.
323
323
324
+
> [!NOTE]
325
+
> ASP.NET Core 3.0 applications are not supported. Please follow [Manual instrumentation](https://docs.microsoft.com/azure/azure-monitor/app/asp-net-core) via code for ASP.NET Core 3.0 apps.
326
+
324
327
1. Check that the application is monitored via `ApplicationInsightsAgent`.
325
328
* Check that `ApplicationInsightsAgent_EXTENSION_VERSION` app setting is set to a value of "~2".
326
329
2. Ensure that the application meets the requirements to be monitored.
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/eventcounters.md
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ ms.author: cithomas
15
15
---
16
16
# EventCounters introduction
17
17
18
-
`EventCounter` is .NET/.NET Core mechanism to publish and consume counters or statistics. [This](https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.Tracing/documentation/EventCounterTutorial.md) document gives an overview of `EventCounters` and examples on how to publish and consume them. EventCounters are supported in all OS Platforms - Windows, Linux and MacOS. It can be thought of as a cross-platform equivalent for the [PerformanceCounters](https://docs.microsoft.com/dotnet/api/system.diagnostics.performancecounter) that is only supported in Windows systems.
18
+
`EventCounter` is .NET/.NET Core mechanism to publish and consume counters or statistics. [This](https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.Tracing/documentation/EventCounterTutorial.md) document gives an overview of `EventCounters` and examples on how to publish and consume them. EventCounters are supported in all OS Platforms - Windows, Linux, and MacOS. It can be thought of as a cross-platform equivalent for the [PerformanceCounters](https://docs.microsoft.com/dotnet/api/system.diagnostics.performancecounter) that is only supported in Windows systems.
19
19
20
20
While users can publish any custom `EventCounters` to meet their needs, the .NET Core 3.0 runtime publishes a set of these counters by default. The document will walk through the steps required to collect and view `EventCounters` (system defined or user defined) in Azure Application Insights.
21
21
@@ -25,7 +25,7 @@ Application Insights supports collecting `EventCounters` with its `EventCounterC
25
25
26
26
## Default counters collected
27
27
28
-
For apps running in .NET Core 3.0, the following set of counters are collected automatically by the SDK. The name of the counters will be of the form "Category|Counter".
28
+
For apps running in .NET Core 3.0, the following counters are collected automatically by the SDK. The name of the counters will be of the form "Category|Counter".
29
29
30
30
|Category | Counter|
31
31
|---------------|-------|
@@ -129,10 +129,23 @@ Like other metrics, you can [set an alert](../../azure-monitor/app/alerts.md) to
129
129
130
130
## Frequently asked questions
131
131
132
-
### Can I see EventCounters in Live Metrics?
132
+
### Can I see EventCounters in Live Metrics?
133
133
134
134
No. Live Metrics do not show EventCounters as of today. Use Metric Explorer or Analytics to see the telemetry.
135
135
136
+
### Which platforms can I see the default list of .NET Core 3.0 counters?
137
+
138
+
EventCounter do not require any special permissions, and is supported in all platforms .NET Core 3.0 is supported. This includes:
139
+
***Operating system**: Windows, Linux, or Mac.
140
+
***Hosting method**: In process or out of process.
141
+
***Deployment method**: Framework dependent or self-contained.
142
+
***Web server**: IIS (Internet Information Server) or Kestrel.
143
+
***Hosting platform**: The Web Apps feature of Azure App Service, Azure VM, Docker, Azure Kubernetes Service (AKS), and so on.
144
+
145
+
### I have enabled Application Insights from Azure Web App Portal. But I cannot see EventCounters.?
146
+
147
+
[Application Insights extension](https://docs.microsoft.com/azure/azure-monitor/app/azure-web-apps) for Asp.Net Core does not yet support this feature. This documetn will be updated when this feature is supported.
0 commit comments