ErrorSamplingCondition class
A sampling condition that forces sampling when a span has an error status.
This condition can be used to ensure that all spans with errors are sampled, regardless of other sampling decisions.
- Inheritance
-
- Object
- SamplingCondition
- ErrorSamplingCondition
Constructors
- ErrorSamplingCondition()
- Creates a new ErrorSamplingCondition.
Properties
- description → String
-
Returns the string description of this sampling condition.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldSample(
{required Context parentContext, required String traceId, required String name, required SpanKind spanKind, required Attributes? attributes, required List< SpanLink> ? links}) → SamplingResult -
Makes a sampling decision based on the provided parameters.
inherited
-
shouldSampleCondition(
{required String name, required SpanKind spanKind, required Attributes? attributes}) → bool -
Determines whether a span should be sampled based on its properties.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited