public static interface Sampler.SamplingResult
Sampler#shouldSample(SpanContext, TraceId, String, Kind,
ReadableAttributes, List)
.Modifier and Type | Method and Description |
---|---|
io.opentelemetry.common.Attributes |
getAttributes()
Return tags which will be attached to the span.
|
Sampler.Decision |
getDecision()
Return decision on whether a span should be recorded, recorded and sampled or not recorded.
|
Sampler.Decision getDecision()
io.opentelemetry.common.Attributes getAttributes()
Sampler.Decision.RECORD
or Sampler.Decision.RECORD_AND_SAMPLED
.