Skip to content

Commit 2977faa

Browse files
committed
Update ApplicationInsights with recent change
1 parent 70dfe99 commit 2977faa

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

articles/azure-monitor/app/asp-net-core.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The [Application Insights SDK for ASP.NET Core](https://nuget.org/packages/Micro
5858

5959
```xml
6060
<ItemGroup>
61-
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.12.0" />
61+
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.13.1" />
6262
</ItemGroup>
6363
```
6464

@@ -197,6 +197,12 @@ Full List of settings in `ApplicationInsightsServiceOptions`
197197

198198
|Setting | Description | Default
199199
|---------------|-------|-------
200+
|EnablePerformanceCounterCollectionModule | Enable/Disable `PerformanceCounterCollectionModule` | true
201+
|EnableRequestTrackingTelemetryModule | Enable/Disable `RequestTrackingTelemetryModule` | true
202+
|EnableEventCounterCollectionModule | Enable/Disable `EventCounterCollectionModule` | true
203+
|EnableDependencyTrackingTelemetryModule | Enable/Disable `DependencyTrackingTelemetryModule` | true
204+
|EnableAppServicesHeartbeatTelemetryModule | Enable/Disable `AppServicesHeartbeatTelemetryModule` | true
205+
|EnableAzureInstanceMetadataTelemetryModule | Enable/Disable `AzureInstanceMetadataTelemetryModule` | true
200206
|EnableQuickPulseMetricStream | Enable/Disable LiveMetrics feature | true
201207
|EnableAdaptiveSampling | Enable/Disable Adaptive Sampling | true
202208
|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)
313319
}
314320
```
315321

322+
Starting with 2.12.2 version, [`ApplicationInsightsServiceOptions`](#using-applicationinsightsserviceoptions) contains easy
323+
option to disable any of the default modules.
324+
316325
### Configuring a telemetry channel
317326

318327
The default channel is `ServerTelemetryChannel`. You can override it as the following example shows.

articles/azure-monitor/app/ilogger.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ To learn more, see [Logging in ASP.NET Core](https://docs.microsoft.com/aspnet/c
1414

1515
## ASP.NET Core applications
1616

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:
1818

19-
- By calling the **UseApplicationInsights** extension method on IWebHostBuilder
19+
- By calling the **UseApplicationInsights** extension method on IWebHostBuilder (Now obsolete)
2020
- By calling the **AddApplicationInsightsTelemetry** extension method on IServiceCollection
2121

2222
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.

articles/azure-monitor/app/worker-service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ A valid Application Insights instrumentation key. This key is required to send a
2727

2828
```xml
2929
<ItemGroup>
30-
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.12.0" />
30+
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.13.1" />
3131
</ItemGroup>
3232
```
3333

0 commit comments

Comments
 (0)