<PackageReference Include="Azure.Monitor.OpenTelemetry.Exporter" Version="1.7.0" />

Azure.Monitor.OpenTelemetry.Exporter.Internals.ResourceProviderHelper

static class ResourceProviderHelper
Provides resource provider detection utilities shared across the exporter. Uses the same logic as AzureMonitorStatsbeat.SetResourceProviderDetails.
public static string DetermineResourceProvider(IPlatform platform)

Determines the compute type/resource provider for the current environment. This method follows the exact same order as AzureMonitorStatsbeat.SetResourceProviderDetails.