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
createSamplingResult
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:SamplingResult
Return decision on whether a span should be recorded, recorded and sampled or not recorded.- Specified by:
getDecision
in interfaceSamplingResult
- Specified by:
getDecision
in classImmutableSamplingResult
- Returns:
- sampling result.
-
getAttributes
Description copied from interface:SamplingResult
Return tags which will be attached to the span.- Specified by:
getAttributes
in interfaceSamplingResult
- Specified by:
getAttributes
in classImmutableSamplingResult
- Returns:
- attributes added to span. These attributes should be added to the span only when
the sampling decision is
SamplingDecision.RECORD_ONLY
orSamplingDecision.RECORD_AND_SAMPLE
.
-
toString
-
equals
-
hashCode
public int hashCode()
-