Soenneker.Extensions.ServiceCollection.ApplicationInsights 4.0.355

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Extensions.ServiceCollection.ApplicationInsights --version 4.0.355
                    
NuGet\Install-Package Soenneker.Extensions.ServiceCollection.ApplicationInsights -Version 4.0.355
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Extensions.ServiceCollection.ApplicationInsights" Version="4.0.355" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Extensions.ServiceCollection.ApplicationInsights" Version="4.0.355" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Extensions.ServiceCollection.ApplicationInsights" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Extensions.ServiceCollection.ApplicationInsights --version 4.0.355
                    
#r "nuget: Soenneker.Extensions.ServiceCollection.ApplicationInsights, 4.0.355"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Extensions.ServiceCollection.ApplicationInsights@4.0.355
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Extensions.ServiceCollection.ApplicationInsights&version=4.0.355
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Extensions.ServiceCollection.ApplicationInsights&version=4.0.355
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
11.0.369 108 10/28/2026
11.0.368 80 10/27/2026
11.0.367 75 10/27/2026
11.0.366 92 10/26/2026
11.0.364 81 10/26/2026
11.0.363 85 10/26/2026
11.0.361 80 10/26/2026
11.0.360 89 10/26/2026
4.0.359 94 10/25/2026
4.0.358 453 10/15/2026
4.0.357 92 10/15/2026
4.0.356 93 10/14/2026
4.0.355 97 10/14/2026
4.0.354 92 10/14/2026
4.0.353 91 10/14/2026
4.0.347 91 10/13/2026
4.0.345 96 10/13/2026
4.0.344 93 10/12/2026
4.0.340 110 10/11/2026
4.0.339 107 10/11/2026
Loading failed

Updated Multiple NuGet packages