Soenneker.Extensions.ServiceCollection.ApplicationInsights
4.0.307
Prefix Reserved
dotnet add package Soenneker.Extensions.ServiceCollection.ApplicationInsights --version 4.0.307
NuGet\Install-Package Soenneker.Extensions.ServiceCollection.ApplicationInsights -Version 4.0.307
<PackageReference Include="Soenneker.Extensions.ServiceCollection.ApplicationInsights" Version="4.0.307" />
<PackageVersion Include="Soenneker.Extensions.ServiceCollection.ApplicationInsights" Version="4.0.307" />
<PackageReference Include="Soenneker.Extensions.ServiceCollection.ApplicationInsights" />
paket add Soenneker.Extensions.ServiceCollection.ApplicationInsights --version 4.0.307
#r "nuget: Soenneker.Extensions.ServiceCollection.ApplicationInsights, 4.0.307"
#:package Soenneker.Extensions.ServiceCollection.ApplicationInsights@4.0.307
#addin nuget:?package=Soenneker.Extensions.ServiceCollection.ApplicationInsights&version=4.0.307
#tool nuget:?package=Soenneker.Extensions.ServiceCollection.ApplicationInsights&version=4.0.307
Soenneker.Extensions.ServiceCollection.ApplicationInsights
IServiceCollection extensions for registering Application Insights, Azure Monitor OpenTelemetry, correlation, and related telemetry services.
Installation
dotnet add package Soenneker.Extensions.ServiceCollection.ApplicationInsights
Usage
using Soenneker.Extensions.ServiceCollection.ApplicationInsights;
services.AddApplicationInsights(configuration);
Registration is controlled by these keys:
| Key | Effect |
|---|---|
Azure:AppInsights:Enable |
When false or missing, the method registers nothing. |
Azure:AppInsights:ConnectionString |
Assigned to the Azure Monitor exporter; the standard environment variable can also supply it. |
Azure:AppInsights:SamplingRatio |
Applied only when the value is between 0 and 1, inclusive; otherwise the Azure Monitor default remains in effect. |
Azure:AppInsights:EnableCorrelationTelemetryInitializer |
Adds the JWT telemetry correlator when true. |
When enabled, the SignalR hub telemetry processor is always registered. The method configures traces, metrics, and logs through the Azure Monitor OpenTelemetry distribution.
Call the extension once during service registration, before building the service provider. It does not create a second service provider or start a background host itself. When disabled, it also skips the optional correlator and SignalR processor.
The connection string can be omitted from application configuration when APPLICATIONINSIGHTS_CONNECTION_STRING is supplied through the environment. Do not commit either form of the connection string to source control.
Traces, metrics, and logs can contain request metadata, correlation identifiers, and application log properties that leave the process for Azure Monitor. Review enrichment, JWT correlation, sampling, access, and retention settings before enabling telemetry for sensitive workloads.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.ApplicationInsights.Correlator.Jwt (>= 4.0.757)
- Soenneker.ApplicationInsights.Processor.SignalR (>= 4.0.403)
- Soenneker.Extensions.Configuration (>= 4.0.872)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.307 | 40 | 9/1/2026 |
| 4.0.306 | 45 | 8/31/2026 |
| 4.0.305 | 49 | 8/31/2026 |
| 4.0.304 | 50 | 8/31/2026 |
| 4.0.303 | 54 | 8/30/2026 |
| 4.0.302 | 71 | 8/30/2026 |
| 4.0.301 | 48 | 8/30/2026 |
| 4.0.299 | 48 | 8/30/2026 |
| 4.0.298 | 91 | 8/30/2026 |
| 4.0.297 | 53 | 8/29/2026 |
| 4.0.295 | 54 | 8/29/2026 |
| 4.0.293 | 49 | 8/29/2026 |
| 4.0.292 | 48 | 8/29/2026 |
| 4.0.291 | 93 | 8/26/2026 |
| 4.0.290 | 81 | 8/26/2026 |
| 4.0.288 | 96 | 8/22/2026 |
| 4.0.287 | 315 | 8/18/2026 |
| 4.0.286 | 141 | 8/12/2026 |
| 4.0.285 | 88 | 8/12/2026 |
| 4.0.284 | 110 | 8/8/2026 |
Update dependency Soenneker.Extensions.Configuration to 4.0.872 (#696)