| File: Sampling\RandomProbabilisticSamplerOptions.cs | Web Access |
| Project: src\src\Libraries\Microsoft.Extensions.Telemetry\Microsoft.Extensions.Telemetry.csproj (Microsoft.Extensions.Telemetry) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Microsoft.Extensions.Options; namespace Microsoft.Extensions.Diagnostics.Sampling; /// <summary> /// The options for the Random Probabilistic sampler. /// </summary> public class RandomProbabilisticSamplerOptions { /// <summary> /// Gets or sets the collection of <see cref="RandomProbabilisticSamplerFilterRule"/> used for filtering log messages. /// </summary> [Required] [ValidateEnumeratedItems] public IList<RandomProbabilisticSamplerFilterRule> Rules { get; set; } = []; }