Uses of Class
io.opencensus.trace.TraceId
-
Packages that use TraceId Package Description io.opencensus.implcore.trace io.opencensus.trace API for distributed tracing.io.opencensus.trace.samplers -
-
Uses of TraceId in io.opencensus.implcore.trace
Methods in io.opencensus.implcore.trace with parameters of type TraceId Modifier and Type Method Description private static boolean
SpanBuilderImpl. makeSamplingDecision(SpanContext parent, java.lang.Boolean hasRemoteParent, java.lang.String name, Sampler sampler, java.util.List<Span> parentLinks, TraceId traceId, SpanId spanId, TraceParams activeTraceParams)
-
Uses of TraceId in io.opencensus.trace
Fields in io.opencensus.trace declared as TraceId Modifier and Type Field Description static TraceId
TraceId. INVALID
The invalidTraceId
.private TraceId
AutoValue_Link. traceId
private TraceId
SpanContext. traceId
Methods in io.opencensus.trace that return TraceId Modifier and Type Method Description static TraceId
TraceId. fromBytes(byte[] src)
Returns aTraceId
built from a byte representation.static TraceId
TraceId. fromBytes(byte[] src, int srcOffset)
Returns aTraceId
whose representation is copied from thesrc
beginning at thesrcOffset
offset.static TraceId
TraceId. fromLowerBase16(java.lang.CharSequence src)
Returns aTraceId
built from a lowercase base16 representation.static TraceId
TraceId. fromLowerBase16(java.lang.CharSequence src, int srcOffset)
Returns aTraceId
built from a lowercase base16 representation.static TraceId
TraceId. generateRandomId(java.util.Random random)
Generates a new randomTraceId
.TraceId
AutoValue_Link. getTraceId()
abstract TraceId
Link. getTraceId()
Returns theTraceId
.TraceId
SpanContext. getTraceId()
Returns the trace identifier associated with thisSpanContext
.Methods in io.opencensus.trace with parameters of type TraceId Modifier and Type Method Description int
TraceId. compareTo(TraceId that)
static SpanContext
SpanContext. create(TraceId traceId, SpanId spanId, TraceOptions traceOptions)
Deprecated.static SpanContext
SpanContext. create(TraceId traceId, SpanId spanId, TraceOptions traceOptions, Tracestate tracestate)
Creates a newSpanContext
with the given identifiers and options.abstract boolean
Sampler. shouldSample(SpanContext parentContext, java.lang.Boolean hasRemoteParent, TraceId traceId, SpanId spanId, java.lang.String name, java.util.List<Span> parentLinks)
Called duringSpan
creation to make a sampling decision.Constructors in io.opencensus.trace with parameters of type TraceId Constructor Description AutoValue_Link(TraceId traceId, SpanId spanId, Link.Type type, java.util.Map<java.lang.String,AttributeValue> attributes)
SpanContext(TraceId traceId, SpanId spanId, TraceOptions traceOptions, Tracestate tracestate)
-
Uses of TraceId in io.opencensus.trace.samplers
Methods in io.opencensus.trace.samplers with parameters of type TraceId Modifier and Type Method Description boolean
AlwaysSampleSampler. shouldSample(SpanContext parentContext, java.lang.Boolean hasRemoteParent, TraceId traceId, SpanId spanId, java.lang.String name, java.util.List<Span> parentLinks)
boolean
NeverSampleSampler. shouldSample(SpanContext parentContext, java.lang.Boolean hasRemoteParent, TraceId traceId, SpanId spanId, java.lang.String name, java.util.List<Span> parentLinks)
boolean
ProbabilitySampler. shouldSample(SpanContext parentContext, java.lang.Boolean hasRemoteParent, TraceId traceId, SpanId spanId, java.lang.String name, java.util.List<Span> parentLinks)
-