SamplingLoggerBuilderExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extensions for configuring logging sampling.
public ref class SamplingLoggerBuilderExtensions abstract sealed
[System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0003", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public static class SamplingLoggerBuilderExtensions
public static class SamplingLoggerBuilderExtensions
[<System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0003", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type SamplingLoggerBuilderExtensions = class
type SamplingLoggerBuilderExtensions = class
Public Module SamplingLoggerBuilderExtensions
- Inheritance
-
SamplingLoggerBuilderExtensions
- Attributes
Methods
AddRandomProbabilisticSampler(ILoggingBuilder, Action<RandomProbabilisticSamplerOptions>) |
Adds Random Probabilistic logging sampler to the logging infrastructure. |
AddRandomProbabilisticSampler(ILoggingBuilder, Double, Nullable<LogLevel>) |
Adds Random Probabilistic logging sampler to the logging infrastructure. |
AddRandomProbabilisticSampler(ILoggingBuilder, IConfiguration) |
Adds Random Probabilistic logging sampler to the logging infrastructure. |
AddSampler(ILoggingBuilder, LoggingSampler) |
Adds a logging sampler instance to the logging infrastructure. |
AddSampler<T>(ILoggingBuilder) |
Adds a logging sampler type to the logging infrastructure. |
AddTraceBasedSampler(ILoggingBuilder) |
Adds Trace-based logging sampler to the logging infrastructure. |