AzureFunctions.Worker.Extensions.ApplicationInsights 2.0.9

dotnet add package AzureFunctions.Worker.Extensions.ApplicationInsights --version 2.0.9                
NuGet\Install-Package AzureFunctions.Worker.Extensions.ApplicationInsights -Version 2.0.9                
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="AzureFunctions.Worker.Extensions.ApplicationInsights" Version="2.0.9" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AzureFunctions.Worker.Extensions.ApplicationInsights --version 2.0.9                
#r "nuget: AzureFunctions.Worker.Extensions.ApplicationInsights, 2.0.9"                
#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.
// Install AzureFunctions.Worker.Extensions.ApplicationInsights as a Cake Addin
#addin nuget:?package=AzureFunctions.Worker.Extensions.ApplicationInsights&version=2.0.9

// Install AzureFunctions.Worker.Extensions.ApplicationInsights as a Cake Tool
#tool nuget:?package=AzureFunctions.Worker.Extensions.ApplicationInsights&version=2.0.9                

Standalone Application Insights

  • Completely opt-out worker host logging to Application insights
  • Have control over RequestTelemetry item in your code
  • Debloat worker host logs
  • Keep Application insights metrics and perf counters

NuGet package

https://www.nuget.org/packages/AzureFunctions.Worker.Extensions.ApplicationInsights

🔴Migration to v2 Azure Functions SDK🔴

Microsoft suggest to use FunctionsApplicationBuilder over generic HostBuilder that is why v2 package will only support this api.

v1

var host = new HostBuilder()
    .ConfigureServices((hostingContext, services) =>
    {
        services
            .AddApplicationInsightsTelemetryWorkerService()
            .ConfigureStandaloneFunctionsApplicationInsights(hostingContext.Configuration); // <-- magic happens here
    })
    .ConfigureFunctionsWebApplication(worker =>
    {
        // additional worker configuration
    })
    .Build();

v2

var builder = FunctionsApplication.CreateBuilder(args);

// should be called before "ConfigureFunctionsWebApplication"
builder.ConfigureStandaloneApplicationInsights(); // <-- now magic happens here

// should be used for HTTP triggered APIs
builder.ConfigureFunctionsWebApplication();

// additional worker configuration
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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
2.0.9 111 2/3/2025
2.0.1 89 1/16/2025
2.0.0 89 1/10/2025
1.0.6 1,102 3/2/2024
1.0.5 143 3/2/2024
1.0.4 154 3/2/2024
1.0.3 135 3/1/2024
1.0.2 138 2/25/2024
1.0.1 135 2/25/2024
1.0.0 134 2/24/2024

- Migration to .NET 9 and Azure Functions Worker v2