Skip to content

[Shim] Add SDK version labels / Environment resource detector#3033

Merged
rajkumar-rangaraj merged 1 commit into
developfrom
rajrang/addShimVersion
Nov 26, 2025
Merged

[Shim] Add SDK version labels / Environment resource detector#3033
rajkumar-rangaraj merged 1 commit into
developfrom
rajrang/addShimVersion

Conversation

@rajkumar-rangaraj
Copy link
Copy Markdown
Member

                   SdkVersionUtils.VersionType = _aiSdkDistroValue switch
                    {
                        "Azure.Monitor.OpenTelemetry.AspNetCore" => SdkVersionType.Distro,
                        "Microsoft.ApplicationInsights" => SdkVersionType.ShimBase,
                        "Microsoft.ApplicationInsights.AspNetCore" => SdkVersionType.ShimAspNetCore,
                        "Microsoft.ApplicationInsights.WorkerService" => SdkVersionType.ShimWorkerService,
                        "Microsoft.ApplicationInsights.Web" => SdkVersionType.ShimWeb,
                        _ => SdkVersionUtils.VersionType
                    };
  • Added AspNetCoreEnvironmentResourceDetector in place of telemetry initializer in AspNetCore
  • Removed unused code.

@rajkumar-rangaraj rajkumar-rangaraj merged commit 4ea5304 into develop Nov 26, 2025
17 of 18 checks passed
@rajkumar-rangaraj rajkumar-rangaraj deleted the rajrang/addShimVersion branch November 26, 2025 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants