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 Attributesattributesprivate SamplingDecisiondecision-
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 booleanequals(java.lang.Object o)AttributesgetAttributes()Return tags which will be attached to the span.SamplingDecisiongetDecision()Return decision on whether a span should be recorded, recorded and sampled or not recorded.inthashCode()java.lang.StringtoString()-
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: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
public Attributes 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-