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

Microsoft.ApplicationInsights.DataContracts.ISupportSampling

public interface ISupportSampling
Represent objects that support data sampling.
double? SamplingPercentage { get; set; }

Gets or sets data sampling percentage (between 0 and 100).