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

Microsoft.ApplicationInsights.Metrics.Extensibility.MetricExtensions

public static class MetricExtensions
There are some APIs on Metric that we hide from Intellisense by making them internal until the ...Extensibility namespace is imported. This class exposes them.
namespace Microsoft.ApplicationInsights.Metrics.Extensibility { public static class MetricExtensions { public static MetricConfiguration GetConfiguration(this Metric metric); } }