OpenTelemetry.Trace.Sampler
Controls the number of samples of traces collected and sent to the backend.
Gets or sets the sampler description.
protected Sampler()
Initializes a new instance of the Sampler class.
Called by Shutdown. This function should block the current
thread until shutdown completed or timed out.
public abstract SamplingResult ShouldSample(SamplingParameters& modreq(System.Runtime.InteropServices.InAttribute) samplingParameters)
Attempts to shut down the sampler, giving it the opportunity to release any
resources it holds. Blocks the current thread until shutdown completed or timed out.