Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Changelog

## Unreleased
- [Fix `TrackAvailability` ignoring user-specified `Timestamp` on `AvailabilityTelemetry`. The timestamp is now emitted as `microsoft.availability.testTimestamp` so downstream exporters can use the correct event time.](https://github.com/microsoft/ApplicationInsights-dotnet/pull/3153)
- [Added `netstandard2.0` target framework to `Microsoft.ApplicationInsights` package to support customers with shared libraries targeting netstandard2.0.](https://github.com/microsoft/ApplicationInsights-dotnet/pull/3142)
- [Fix `DisableTelemetry` not disabling metrics export: `OTEL_SDK_DISABLED` was set in IConfiguration too late (during options callback) after the OTel MeterProvider had already been constructed. Moved the check to a hosted service that runs before OpenTelemetry's TelemetryHostedService.](https://github.com/microsoft/ApplicationInsights-dotnet/pull/3156)
Comment thread
rajkumar-rangaraj marked this conversation as resolved.
- [Fix `TelemetryClient.Context.Cloud.RoleName` set after construction now applies to all telemetry.](https://github.com/microsoft/ApplicationInsights-dotnet/pull/3129)
- [Fix bug where Debug/Trace level logs from TrackTrace API were not emitted to Application Insights](https://github.com/microsoft/ApplicationInsights-dotnet/pull/3121)
- [Fix Track API calls to not mutate the passed in dictionary if it is readonly](https://github.com/microsoft/ApplicationInsights-dotnet/pull/3119)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
.WithApplicationInsights()
.UseApplicationInsightsTelemetry();

AddTelemetryConfigAndClient(services, VersionUtils.ExtensionLabelShimAspNetCore + VersionUtils.GetVersion(typeof(ApplicationInsightsExtensions)));

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net9.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net9.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net9.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net9.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net9.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net9.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net10.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net10.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net10.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net10.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net10.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net10.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net8.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net8.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net8.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net8.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net8.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net480)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net480)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net480)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net481)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net481)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net481)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net472)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net472)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net472)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net462)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net462)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net462)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net8.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net8.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net8.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net9.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net9.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net9.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net10.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net10.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 102 in NETCORE/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net10.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetry(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
services.AddSingleton<IJavaScriptSnippet, JavaScriptSnippet>();
services.AddSingleton<JavaScriptSnippet>();
}
Expand Down Expand Up @@ -205,12 +205,6 @@
{
var serviceOptions = aiOptions.Value;

// Set OTEL_SDK_DISABLED in configuration if DisableTelemetry is true
if (telemetryConfig.DisableTelemetry)
{
config["OTEL_SDK_DISABLED"] = "true";
}

if (!string.IsNullOrEmpty(telemetryConfig.StorageDirectory))
{
exporterOptions.StorageDirectory = telemetryConfig.StorageDirectory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
.WithApplicationInsights()
.UseApplicationInsightsTelemetry();

AddTelemetryConfigAndClient(services, VersionUtils.ExtensionLabelShimWorkerService + VersionUtils.GetVersion(typeof(ApplicationInsightsExtensions)));

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net9.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net9.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net9.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net9.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net10.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net10.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net10.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net10.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net8.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net8.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net8.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net8.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (ubuntu-latest, net8.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net480)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net480)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net480)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net481)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net481)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net481)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net472)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net472)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net472)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net462)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net462)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net462)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net8.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net8.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net8.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net9.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net9.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net9.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net10.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net10.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Check warning on line 101 in NETCORE/src/Microsoft.ApplicationInsights.WorkerService/ApplicationInsightsExtensions.cs

View workflow job for this annotation

GitHub Actions / build-test-SHIM (windows-latest, net10.0)

In externally visible method 'IServiceCollection ApplicationInsightsExtensions.AddApplicationInsightsTelemetryWorkerService(IServiceCollection services)', validate parameter 'services' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
}

return services;
Expand Down Expand Up @@ -200,12 +200,6 @@
{
var serviceOptions = aiOptions.Value;

// Set OTEL_SDK_DISABLED in configuration if DisableTelemetry is true
if (telemetryConfig.DisableTelemetry)
{
config["OTEL_SDK_DISABLED"] = "true";
}

if (!string.IsNullOrEmpty(telemetryConfig.StorageDirectory))
{
exporterOptions.StorageDirectory = telemetryConfig.StorageDirectory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#endif

using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

Expand Down Expand Up @@ -91,6 +92,14 @@ private static bool IsApplicationInsightsAdded(IServiceCollection services)
private static void AddTelemetryConfigAndClient(IServiceCollection services, string extensionVersion)
{
services.AddOptions();

// Insert a hosted service at position 0 so it runs BEFORE OpenTelemetry's TelemetryHostedService.
// This ensures TelemetryConfiguration.DisableTelemetry is evaluated and OTEL_SDK_DISABLED is set
// in IConfiguration before the OTel SDK constructs its providers (which check OTEL_SDK_DISABLED).
if (!services.Any(d => d.ServiceType == typeof(IHostedService) && d.ImplementationType == typeof(DisableTelemetryInitializerHostedService)))
{
services.Insert(0, ServiceDescriptor.Singleton<IHostedService, DisableTelemetryInitializerHostedService>());
}
Comment thread
rajkumar-rangaraj marked this conversation as resolved.
Outdated

// Register TelemetryConfiguration singleton with factory that creates it for DI scenarios
// We use a factory to ensure skipDefaultBuilderConfiguration: true is passed
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
namespace Microsoft.Extensions.DependencyInjection
{
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;

/// <summary>
/// A hosted service that runs before OpenTelemetry's TelemetryHostedService to set
/// OTEL_SDK_DISABLED in IConfiguration when TelemetryConfiguration.DisableTelemetry is true.
/// This ensures the OTel SDK sees the disabled flag before constructing providers.
/// </summary>
internal sealed class DisableTelemetryInitializerHostedService : IHostedService
{
private readonly IServiceProvider serviceProvider;

public DisableTelemetryInitializerHostedService(IServiceProvider serviceProvider)
{
this.serviceProvider = serviceProvider;
}

public Task StartAsync(CancellationToken cancellationToken)
{
var telemetryConfig = this.serviceProvider.GetService<TelemetryConfiguration>();
if (telemetryConfig != null && telemetryConfig.DisableTelemetry)
{
var config = this.serviceProvider.GetRequiredService<IConfiguration>();
config["OTEL_SDK_DISABLED"] = "true";
Comment thread
rajkumar-rangaraj marked this conversation as resolved.
Outdated
}

return Task.CompletedTask;
}

public Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
}
}
1 change: 1 addition & 0 deletions NETCORE/src/Shared/Shared.projitems
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<Compile Include="$(MSBuildThisFileDirectory)ApplicationVersionResourceDetector.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Extensions\ApplicationInsightsExtensions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Extensions\ApplicationInsightsServiceOptions.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Extensions\DisableTelemetryInitializerHostedService.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Internals\ApplicationNameProvider.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Vendoring\OpenTelemetry.Resources.Azure\AppServiceResourceDetector.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Vendoring\OpenTelemetry.Resources.Azure\AzureContainerAppsResourceDetector.cs" />
Expand Down
Loading