Class AutoValue_ImmutableSamplingResult
java.lang.Object
io.opentelemetry.sdk.trace.samplers.ImmutableSamplingResult
io.opentelemetry.sdk.trace.samplers.AutoValue_ImmutableSamplingResult
- All Implemented Interfaces:
SamplingResult
-
Field Summary
FieldsFields inherited from class io.opentelemetry.sdk.trace.samplers.ImmutableSamplingResult
EMPTY_NOT_SAMPLED_OR_RECORDED_SAMPLING_RESULT, EMPTY_RECORDED_AND_SAMPLED_SAMPLING_RESULT, EMPTY_RECORDED_SAMPLING_RESULT -
Constructor Summary
ConstructorsConstructorDescriptionAutoValue_ImmutableSamplingResult(SamplingDecision decision, Attributes attributes) -
Method Summary
Methods inherited from class io.opentelemetry.sdk.trace.samplers.ImmutableSamplingResult
createSamplingResultMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.opentelemetry.sdk.trace.samplers.SamplingResult
getUpdatedTraceState
-
Field Details
-
decision
-
attributes
-
-
Constructor Details
-
AutoValue_ImmutableSamplingResult
AutoValue_ImmutableSamplingResult(SamplingDecision decision, Attributes attributes)
-
-
Method Details
-
getDecision
Description copied from interface:SamplingResultReturn decision on whether a span should be recorded, recorded and sampled or not recorded.- Specified by:
getDecisionin interfaceSamplingResult- Specified by:
getDecisionin classImmutableSamplingResult- Returns:
- sampling result.
-
getAttributes
Description copied from interface:SamplingResultReturn tags which will be attached to the span.- Specified by:
getAttributesin interfaceSamplingResult- Specified by:
getAttributesin classImmutableSamplingResult- Returns:
- attributes added to span. These attributes should be added to the span only when
the sampling decision is
SamplingDecision.RECORD_ONLYorSamplingDecision.RECORD_AND_SAMPLE.
-
toString
-
equals
-
hashCode
public int hashCode()
-