Поделиться через


LoggingSampler Class

Definition

Controls the number of samples of log records collected and sent to the backend.

public ref class LoggingSampler abstract
[System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0003", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public abstract class LoggingSampler
public abstract class LoggingSampler
[<System.Diagnostics.CodeAnalysis.Experimental("EXTEXP0003", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type LoggingSampler = class
type LoggingSampler = class
Public MustInherit Class LoggingSampler
Inheritance
LoggingSampler
Attributes

Constructors

LoggingSampler()

Methods

ShouldSample<TState>(LogEntry<TState>)

Makes a sampling decision for the provided logEntry.

Applies to