Skip to content

Commit 6f50c11

Browse files
committed
fixing blocking and nonblocking issues
1 parent 086e9e8 commit 6f50c11

File tree

2 files changed

+64
-64
lines changed

2 files changed

+64
-64
lines changed

articles/azure-monitor/app/asp-net-troubleshoot-no-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ PerfView.exe collect -MaxCollectSec:300 -NoGui /onlyProviders=*Microsoft-Applica
238238
You can modify these parameters as needed:
239239
- **MaxCollectSec**. Set this parameter to prevent PerfView from running indefinitely and affecting the performance of your server.
240240
- **OnlyProviders**. Set this parameter to only collect logs from the SDK. You can customize this list based on your specific investigations.
241-
- **NoGui**. Set this parameter to collect logs without the Gui.
241+
- **NoGui**. Set this parameter to collect logs without the GUI.
242242

243243

244244
For more information,

articles/azure-monitor/app/remove-application-insights.md

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This article will show you how to remove the ASP.NET and ASP.NET Core Applicatio
1212

1313
To remove Application Insights, you'll need to remove the NuGet packages and references from the API in your application. You can uninstall NuGet packages by using the Package Management Console or Manage NuGet Solution in Visual Studio. The following sections will show two ways to remove NuGet Packages and what was automatically added in your project. Be sure to confirm the files added and areas with in your own code in which you made calls to the API are removed.
1414

15-
## Uninstall using the Package Management Console
15+
## Uninstall using the Package Management Console
1616

1717
# [.NET](#tab/net)
1818

@@ -41,7 +41,7 @@ To remove Application Insights, you'll need to remove the NuGet packages and ref
4141

4242
---
4343

44-
## Uninstall using the Visual Studio NuGet UI
44+
## Uninstall using the Visual Studio NuGet UI
4545

4646
# [.NET](#tab/net)
4747

@@ -99,78 +99,78 @@ The following pieces of code are added:
9999

100100
- [Your project's name].csproj
101101

102-
```C#
103-
<ApplicationInsightsResourceId>/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/Default-ApplicationInsights-EastUS/providers/microsoft.insights/components/WebApplication4</ApplicationInsightsResourceId>
104-
```
102+
```C#
103+
<ApplicationInsightsResourceId>/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/Default-ApplicationInsights-EastUS/providers/microsoft.insights/components/WebApplication4</ApplicationInsightsResourceId>
104+
```
105105

106106
- Packages.config
107107

108-
```xml
109-
<packages>
110-
...
111-
112-
<package id="Microsoft.ApplicationInsights" version="2.12.0" targetFramework="net472" />
113-
<package id="Microsoft.ApplicationInsights.Agent.Intercept" version="2.4.0" targetFramework="net472" />
114-
<package id="Microsoft.ApplicationInsights.DependencyCollector" version="2.12.0" targetFramework="net472" />
115-
<package id="Microsoft.ApplicationInsights.PerfCounterCollector" version="2.12.0" targetFramework="net472" />
116-
<package id="Microsoft.ApplicationInsights.Web" version="2.12.0" targetFramework="net472" />
117-
<package id="Microsoft.ApplicationInsights.WindowsServer" version="2.12.0" targetFramework="net472" />
118-
<package id="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel" version="2.12.0" targetFramework="net472" />
119-
120-
<package id="Microsoft.AspNet.TelemetryCorrelation" version="1.0.7" targetFramework="net472" />
121-
122-
<package id="System.Buffers" version="4.4.0" targetFramework="net472" />
123-
<package id="System.Diagnostics.DiagnosticSource" version="4.6.0" targetFramework="net472" />
124-
<package id="System.Memory" version="4.5.3" targetFramework="net472" />
125-
<package id="System.Numerics.Vectors" version="4.4.0" targetFramework="net472" />
126-
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.2" targetFramework="net472" />
127-
...
128-
</packages>
129-
```
108+
```xml
109+
<packages>
110+
...
111+
112+
<package id="Microsoft.ApplicationInsights" version="2.12.0" targetFramework="net472" />
113+
<package id="Microsoft.ApplicationInsights.Agent.Intercept" version="2.4.0" targetFramework="net472" />
114+
<package id="Microsoft.ApplicationInsights.DependencyCollector" version="2.12.0" targetFramework="net472" />
115+
<package id="Microsoft.ApplicationInsights.PerfCounterCollector" version="2.12.0" targetFramework="net472" />
116+
<package id="Microsoft.ApplicationInsights.Web" version="2.12.0" targetFramework="net472" />
117+
<package id="Microsoft.ApplicationInsights.WindowsServer" version="2.12.0" targetFramework="net472" />
118+
<package id="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel" version="2.12.0" targetFramework="net472" />
119+
120+
<package id="Microsoft.AspNet.TelemetryCorrelation" version="1.0.7" targetFramework="net472" />
121+
122+
<package id="System.Buffers" version="4.4.0" targetFramework="net472" />
123+
<package id="System.Diagnostics.DiagnosticSource" version="4.6.0" targetFramework="net472" />
124+
<package id="System.Memory" version="4.5.3" targetFramework="net472" />
125+
<package id="System.Numerics.Vectors" version="4.4.0" targetFramework="net472" />
126+
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.2" targetFramework="net472" />
127+
...
128+
</packages>
129+
```
130130

131131
- Layout.cshtml
132132

133-
If your project has a Layout.cshtml file the code below is added.
134-
135-
```html
136-
<head>
137-
...
138-
<script type = 'text/javascript' >
139-
var appInsights=window.appInsights||function(config)
140-
{
141-
function r(config){ t[config] = function(){ var i = arguments; t.queue.push(function(){ t[config].apply(t, i)})} }
142-
var t = { config:config},u=document,e=window,o='script',s=u.createElement(o),i,f;for(s.src=config.url||'//az416426.vo.msecnd.net/scripts/a/ai.0.js',u.getElementsByTagName(o)[0].parentNode.appendChild(s),t.cookie=u.cookie,t.queue=[],i=['Event','Exception','Metric','PageView','Trace','Ajax'];i.length;)r('track'+i.pop());return r('setAuthenticatedUserContext'),r('clearAuthenticatedUserContext'),config.disableExceptionTracking||(i='onerror',r('_'+i),f=e[i],e[i]=function(config, r, u, e, o) { var s = f && f(config, r, u, e, o); return s !== !0 && t['_' + i](config, r, u, e, o),s}),t
143-
}({
144-
instrumentationKey:'00000000-0000-0000-0000-000000000000'
145-
});
146-
147-
window.appInsights=appInsights;
148-
appInsights.trackPageView();
149-
</script>
150-
...
151-
</head>
152-
```
133+
If your project has a Layout.cshtml file the code below is added.
134+
135+
```html
136+
<head>
137+
...
138+
<script type = 'text/javascript' >
139+
var appInsights=window.appInsights||function(config)
140+
{
141+
function r(config){ t[config] = function(){ var i = arguments; t.queue.push(function(){ t[config].apply(t, i)})} }
142+
var t = { config:config},u=document,e=window,o='script',s=u.createElement(o),i,f;for(s.src=config.url||'//az416426.vo.msecnd.net/scripts/a/ai.0.js',u.getElementsByTagName(o)[0].parentNode.appendChild(s),t.cookie=u.cookie,t.queue=[],i=['Event','Exception','Metric','PageView','Trace','Ajax'];i.length;)r('track'+i.pop());return r('setAuthenticatedUserContext'),r('clearAuthenticatedUserContext'),config.disableExceptionTracking||(i='onerror',r('_'+i),f=e[i],e[i]=function(config, r, u, e, o) { var s = f && f(config, r, u, e, o); return s !== !0 && t['_' + i](config, r, u, e, o),s}),t
143+
}({
144+
instrumentationKey:'00000000-0000-0000-0000-000000000000'
145+
});
146+
147+
window.appInsights=appInsights;
148+
appInsights.trackPageView();
149+
</script>
150+
...
151+
</head>
152+
```
153153

154154
- ConnectedService.json
155155

156-
```json
157-
{
158-
"ProviderId": "Microsoft.ApplicationInsights.ConnectedService.ConnectedServiceProvider",
159-
"Version": "16.0.0.0",
160-
"GettingStartedDocument": {
161-
"Uri": "https://go.microsoft.com/fwlink/?LinkID=613413"
162-
}
163-
}
164-
```
156+
```json
157+
{
158+
"ProviderId": "Microsoft.ApplicationInsights.ConnectedService.ConnectedServiceProvider",
159+
"Version": "16.0.0.0",
160+
"GettingStartedDocument": {
161+
"Uri": "https://go.microsoft.com/fwlink/?LinkID=613413"
162+
}
163+
}
164+
```
165165

166166
- FilterConfig.cs
167167

168-
```csharp
169-
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
170-
{
171-
filters.Add(new ErrorHandler.AiHandleErrorAttribute());// This line was added
172-
}
173-
```
168+
```csharp
169+
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
170+
{
171+
filters.Add(new ErrorHandler.AiHandleErrorAttribute());// This line was added
172+
}
173+
```
174174

175175
# [.NET Core](#tab/netcore)
176176

@@ -223,6 +223,6 @@ When you add Application Insights Telemetry to a Visual Studio ASP.NET Core temp
223223

224224
---
225225

226-
## Next Steps
226+
## Next steps
227227

228228
- [Azure Monitor](https://docs.microsoft.com/azure/azure-monitor/overview)

0 commit comments

Comments
 (0)