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
|EnableHeartbeat | Enable/Disable Heartbeats feature, which periodically (15-min default) sends a custom metric named 'HeartBeatState' with information about the runtime like .NET Version, Azure Environment information, if applicable, etc. | true
@@ -313,6 +319,9 @@ public void ConfigureServices(IServiceCollection services)
313
319
}
314
320
```
315
321
322
+
Starting with 2.12.2 version, [`ApplicationInsightsServiceOptions`](#using-applicationinsightsserviceoptions) contains easy
323
+
option to disable any of the default modules.
324
+
316
325
### Configuring a telemetry channel
317
326
318
327
The default channel is `ServerTelemetryChannel`. You can override it as the following example shows.
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/ilogger.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,9 @@ To learn more, see [Logging in ASP.NET Core](https://docs.microsoft.com/aspnet/c
14
14
15
15
## ASP.NET Core applications
16
16
17
-
ApplicationInsightsLoggerProvider is enabled by default in [Microsoft.ApplicationInsights.AspNet SDK](https://www.nuget.org/packages/Microsoft.ApplicationInsights.AspNetCore) version 2.7.1 (and later) when you turn on regular Application Insights monitoring through either of the standard methods:
17
+
ApplicationInsightsLoggerProvider is enabled by default in [Microsoft.ApplicationInsights.AspNet SDK](https://www.nuget.org/packages/Microsoft.ApplicationInsights.AspNetCore) version 2.7.1 (and later) when you turn on regular Application Insights monitoring through either of the methods:
18
18
19
-
- By calling the **UseApplicationInsights** extension method on IWebHostBuilder
19
+
- By calling the **UseApplicationInsights** extension method on IWebHostBuilder (Now obsolete)
20
20
- By calling the **AddApplicationInsightsTelemetry** extension method on IServiceCollection
21
21
22
22
ILogger logs that ApplicationInsightsLoggerProvider captures are subject to the same configuration as any other telemetry that's collected. They have the same set of TelemetryInitializers and TelemetryProcessors, use the same TelemetryChannel, and are correlated and sampled in the same way as other telemetry. If you use version 2.7.1 or later, no action is required to capture ILogger logs.
0 commit comments