diff --git a/README.md b/README.md index 48a155c..c5720c1 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Beginning [10 November 2026, the in-process model for .NET apps in Azure Functions will no longer be supported][in-process-retirement-notice]. [Migrate to the isolated worked model][migrate-isolated-worker-model]. -The Application Insights integration for Azure Functions `v3` and `v4` suffers from a few quirks that can lead to a huge Application Insights bill: +The Application Insights integration for Azure Functions `v4` suffers from a few quirks that can lead to a huge Application Insights bill: - Telemetry processors are not supported, preventing developers from discarding telemetry items - Each Function execution records a trace when starting and on completion diff --git a/src/AzureFunctionsTelemetry/AzureFunctionsTelemetry.csproj b/src/AzureFunctionsTelemetry/AzureFunctionsTelemetry.csproj index 537ec4f..163ddfc 100644 --- a/src/AzureFunctionsTelemetry/AzureFunctionsTelemetry.csproj +++ b/src/AzureFunctionsTelemetry/AzureFunctionsTelemetry.csproj @@ -13,7 +13,7 @@ AzureFunctions.Better.ApplicationInsights Better Azure Functions Application Insights integration Gabriel Weyer - Improve Application Insights (App Insights) integration for Azure Function v3 and v4. Automatically discard cruft telemetry emitted by Functions runtime. Add your own telemetry processors. + Improve Application Insights (App Insights) integration for Azure Function v4. Automatically discard cruft telemetry emitted by Functions runtime. Add your own telemetry processors. Azure-Functions Application-Insights App-Insights Telemetry Instrumentation Observability Save-Money https://github.com/gabrielweyer/azure-functions-telemetry README.md diff --git a/tests/AzureFunctionsTelemetryTests/ApplicationInsights/ApplicationInsightsServiceCollectionExtensionsTests.cs b/tests/AzureFunctionsTelemetryTests/ApplicationInsights/ApplicationInsightsServiceCollectionExtensionsTests.cs index e2a1cf0..e567564 100644 --- a/tests/AzureFunctionsTelemetryTests/ApplicationInsights/ApplicationInsightsServiceCollectionExtensionsTests.cs +++ b/tests/AzureFunctionsTelemetryTests/ApplicationInsights/ApplicationInsightsServiceCollectionExtensionsTests.cs @@ -35,13 +35,11 @@ public void GivenApplicationNameProvided_ThenRegisterApplicationInitializer() registeredTelemetryInitializers.Should().Contain(typeof(ApplicationInitializer)); } -#pragma warning disable CS8619 // I have to support both .NET Core 3.1 and .NET 6 - private static List GetTelemetryInitializers(IServiceCollection serviceCollection) + private static List GetTelemetryInitializers(IServiceCollection serviceCollection) { return serviceCollection .Where(s => s.ServiceType == typeof(ITelemetryInitializer) && s.ImplementationType != null) .Select(s => s.ImplementationType) .ToList(); } -#pragma warning restore CS8619 }