<PackageReference Include="Microsoft.ApplicationInsights" Version="2.23.0" />

Microsoft.ApplicationInsights.Extensibility.IApplicationIdProvider

public interface IApplicationIdProvider
An interface for providing an Application Id for a given Instrumentation Key.
bool TryGetApplicationId(string instrumentationKey, out string applicationId)

Retrieves the Application Id to be used for Request.Source or Dependency.Target.