Skip to main content

%Trace.AlwaysOffSampler

class %Trace.AlwaysOffSampler extends %Trace.AbstractSampler

Returns DROP always.

Method Inventory

Methods

method %OnNew(Parameters As %List) as %Status
No Parameters for AlwaysOffSampler
method GetDescription() as %String
Returns the sampler name or short description with the configuration. This may be displayed on debug pages or in the logs. Example: 'TraceIdRatioBased{0.000100}'
method ShouldSample(Context As %Trace.SpanContext, TraceId As %String, Name As %String, SpanKind As %String, ByRef Attributes As %String) as %Trace.SamplingResult
Returns the sampling Decision for a Span to be created and recorded. 'Attributes' should be passed by reference as an array, e.g. Attribute("key")="value".

Inherited Members

Inherited Methods

FeedbackOpens in a new tab