<PackageReference Include="OpenTelemetry" Version="1.21.0-rc.1" />

OpenTelemetry.Internal.ConfigurationAliasPrecedence

Chooses between an OTEL_* variable and the configuration section key for the same option by provider order, as .NET chooses between providers for a single key: the value from the later provider wins. When both come from the same provider, or the configuration does not expose its providers, the section key wins.
public static IConfiguration CreateBindableSection(IConfiguration configuration, string sectionPath, IReadOnlyList<ConfigurationAlias> aliases, Func<string, bool> isVariableApplied, IEnumerable<string> excludedKeys)

Creates the section to bind, without excluded keys, keys whose variable comes from a later provider, or empty values, and with values converted by NormalizeSectionValue.

public static bool IsFromLaterProvider(IConfiguration configuration, string key, string otherKey)

Determines whether the value of key comes from a later provider than the value of otherKey.