Class AutoValue_ImmutableSamplingResult
- java.lang.Object
-
- io.opentelemetry.sdk.trace.samplers.ImmutableSamplingResult
-
- io.opentelemetry.sdk.trace.samplers.AutoValue_ImmutableSamplingResult
-
- All Implemented Interfaces:
SamplingResult
@Generated("com.google.auto.value.processor.AutoValueProcessor") final class AutoValue_ImmutableSamplingResult extends ImmutableSamplingResult
-
-
Field Summary
Fields Modifier and Type Field Description private Attributes
attributes
private SamplingDecision
decision
-
Fields 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
Constructors Constructor Description AutoValue_ImmutableSamplingResult(SamplingDecision decision, Attributes attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Attributes
getAttributes()
Return tags which will be attached to the span.SamplingDecision
getDecision()
Return decision on whether a span should be recorded, recorded and sampled or not recorded.int
hashCode()
java.lang.String
toString()
-
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 Detail
-
decision
private final SamplingDecision decision
-
attributes
private final Attributes attributes
-
-
Constructor Detail
-
AutoValue_ImmutableSamplingResult
AutoValue_ImmutableSamplingResult(SamplingDecision decision, Attributes attributes)
-
-
Method Detail
-
getDecision
public SamplingDecision 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
public Attributes 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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-