Skip to main content

%Trace.SamplingResult

class %Trace.SamplingResult extends %Library.RegisteredObject

Holds the result of the Sampling decision from calling Sampler.ShouldSample.

Property Inventory

Properties

property Attributes as array of %String;
A set of span Attributes that will also be added to the Span.
Property methods: AttributesBuildValueArray(), AttributesCollectionToDisplay(), AttributesCollectionToOdbc(), AttributesDisplayToCollection(), AttributesDisplayToLogical(), AttributesGet(), AttributesGetObject(), AttributesGetObjectId(), AttributesGetSwizzled(), AttributesIsValid(), AttributesLogicalToDisplay(), AttributesLogicalToOdbc(), AttributesNormalize(), AttributesOdbcToCollection(), AttributesSet(), AttributesSetObject(), AttributesSetObjectId()
property Decision as %String (VALUELIST = "DROP, RECORD_ONLY, RECORD_AND_SAMPLE");
Decision returned from the Sampler.ShouldSample method Values are DROP (IsRecording=0, Sampled=0), RECORD_ONLY (IsRecording=1, Sampled=0), RECORD_AND_SAMPLE (IsRecording=1, Sampled=1)
Property methods: DecisionDisplayToLogical(), DecisionGet(), DecisionIsValid(), DecisionLogicalToDisplay(), DecisionLogicalToOdbc(), DecisionNormalize(), DecisionSet()
property TraceState as array of %String;
A Tracestate that will be associated with the Span through the new SpanContext. If the sampler returns an empty Tracestate here, the Tracestate will be cleared, so samplers SHOULD normally return the passed-in Tracestate if they do not intend to change it.
Property methods: TraceStateBuildValueArray(), TraceStateCollectionToDisplay(), TraceStateCollectionToOdbc(), TraceStateDisplayToCollection(), TraceStateDisplayToLogical(), TraceStateGet(), TraceStateGetObject(), TraceStateGetObjectId(), TraceStateGetSwizzled(), TraceStateIsValid(), TraceStateLogicalToDisplay(), TraceStateLogicalToOdbc(), TraceStateNormalize(), TraceStateOdbcToCollection(), TraceStateSet(), TraceStateSetObject(), TraceStateSetObjectId()

Inherited Members

Inherited Methods

FeedbackOpens in a new tab