Uses of Class
io.opencensus.trace.TraceId
Packages that use TraceId
Package
Description
API for distributed tracing.
-
Uses of TraceId in io.opencensus.implcore.trace
Methods in io.opencensus.implcore.trace with parameters of type TraceIdModifier and TypeMethodDescriptionprivate static boolean
SpanBuilderImpl.makeSamplingDecision
(SpanContext parent, Boolean hasRemoteParent, String name, Sampler sampler, List<Span> parentLinks, TraceId traceId, SpanId spanId, TraceParams activeTraceParams) -
Uses of TraceId in io.opencensus.trace
Fields in io.opencensus.trace declared as TraceIdModifier and TypeFieldDescriptionstatic final TraceId
TraceId.INVALID
The invalidTraceId
.private final TraceId
AutoValue_Link.traceId
private final TraceId
SpanContext.traceId
Methods in io.opencensus.trace that return TraceIdModifier and TypeMethodDescriptionstatic 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
(CharSequence src) Returns aTraceId
built from a lowercase base16 representation.static TraceId
TraceId.fromLowerBase16
(CharSequence src, int srcOffset) Returns aTraceId
built from a lowercase base16 representation.static TraceId
TraceId.generateRandomId
(Random random) Generates a new randomTraceId
.AutoValue_Link.getTraceId()
abstract TraceId
Link.getTraceId()
Returns theTraceId
.SpanContext.getTraceId()
Returns the trace identifier associated with thisSpanContext
.Methods in io.opencensus.trace with parameters of type TraceIdModifier and TypeMethodDescriptionint
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, Boolean hasRemoteParent, TraceId traceId, SpanId spanId, String name, List<Span> parentLinks) Called duringSpan
creation to make a sampling decision.Constructors in io.opencensus.trace with parameters of type TraceIdModifierConstructorDescription(package private)
AutoValue_Link
(TraceId traceId, SpanId spanId, Link.Type type, Map<String, AttributeValue> attributes) private
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 TraceIdModifier and TypeMethodDescriptionboolean
AlwaysSampleSampler.shouldSample
(SpanContext parentContext, Boolean hasRemoteParent, TraceId traceId, SpanId spanId, String name, List<Span> parentLinks) boolean
NeverSampleSampler.shouldSample
(SpanContext parentContext, Boolean hasRemoteParent, TraceId traceId, SpanId spanId, String name, List<Span> parentLinks) final boolean
ProbabilitySampler.shouldSample
(SpanContext parentContext, Boolean hasRemoteParent, TraceId traceId, SpanId spanId, String name, List<Span> parentLinks)
SpanContext.create(TraceId, SpanId, TraceOptions, Tracestate)
.