Uses of Class
io.opencensus.trace.SpanId
-
Packages that use SpanId Package Description io.opencensus.contrib.http.util io.opencensus.implcore.trace io.opencensus.trace API for distributed tracing.io.opencensus.trace.export io.opencensus.trace.samplers -
-
Uses of SpanId in io.opencensus.contrib.http.util
Methods in io.opencensus.contrib.http.util that return SpanId Modifier and Type Method Description private static SpanId
CloudTraceFormat. longToSpanId(long x)
Methods in io.opencensus.contrib.http.util with parameters of type SpanId Modifier and Type Method Description private static long
CloudTraceFormat. spanIdToLong(SpanId spanId)
-
Uses of SpanId in io.opencensus.implcore.trace
Fields in io.opencensus.implcore.trace declared as SpanId Modifier and Type Field Description private SpanId
RecordEventsSpanImpl. parentSpanId
Methods in io.opencensus.implcore.trace with parameters of type SpanId 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)
static RecordEventsSpanImpl
RecordEventsSpanImpl. startSpan(SpanContext context, java.lang.String name, Span.Kind kind, SpanId parentSpanId, java.lang.Boolean hasRemoteParent, TraceParams traceParams, RecordEventsSpanImpl.StartEndHandler startEndHandler, TimestampConverter timestampConverter, Clock clock)
Creates and starts a span with the given configuration.Constructors in io.opencensus.implcore.trace with parameters of type SpanId Constructor Description RecordEventsSpanImpl(SpanContext context, java.lang.String name, Span.Kind kind, SpanId parentSpanId, java.lang.Boolean hasRemoteParent, TraceParams traceParams, RecordEventsSpanImpl.StartEndHandler startEndHandler, TimestampConverter timestampConverter, Clock clock)
-
Uses of SpanId in io.opencensus.trace
Fields in io.opencensus.trace declared as SpanId Modifier and Type Field Description static SpanId
SpanId. INVALID
The invalidSpanId
.private SpanId
AutoValue_Link. spanId
private SpanId
SpanContext. spanId
Methods in io.opencensus.trace that return SpanId Modifier and Type Method Description static SpanId
SpanId. fromBytes(byte[] src)
Returns aSpanId
built from a byte representation.static SpanId
SpanId. fromBytes(byte[] src, int srcOffset)
Returns aSpanId
whose representation is copied from thesrc
beginning at thesrcOffset
offset.static SpanId
SpanId. fromLowerBase16(java.lang.CharSequence src)
Returns aSpanId
built from a lowercase base16 representation.static SpanId
SpanId. fromLowerBase16(java.lang.CharSequence src, int srcOffset)
Returns aSpanId
built from a lowercase base16 representation.static SpanId
SpanId. generateRandomId(java.util.Random random)
Generates a new randomSpanId
.SpanId
AutoValue_Link. getSpanId()
abstract SpanId
Link. getSpanId()
Returns theSpanId
.SpanId
SpanContext. getSpanId()
Returns the span identifier associated with thisSpanContext
.Methods in io.opencensus.trace with parameters of type SpanId Modifier and Type Method Description int
SpanId. compareTo(SpanId 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 SpanId 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 SpanId in io.opencensus.trace.export
Fields in io.opencensus.trace.export declared as SpanId Modifier and Type Field Description private SpanId
AutoValue_SpanData. parentSpanId
Methods in io.opencensus.trace.export that return SpanId Modifier and Type Method Description SpanId
AutoValue_SpanData. getParentSpanId()
abstract SpanId
SpanData. getParentSpanId()
Returns the parentSpanId
ornull
if theSpan
is a rootSpan
.Methods in io.opencensus.trace.export with parameters of type SpanId Modifier and Type Method Description static SpanData
SpanData. create(SpanContext context, SpanId parentSpanId, java.lang.Boolean hasRemoteParent, java.lang.String name, Timestamp startTimestamp, SpanData.Attributes attributes, SpanData.TimedEvents<Annotation> annotations, SpanData.TimedEvents<? extends BaseMessageEvent> messageOrNetworkEvents, SpanData.Links links, java.lang.Integer childSpanCount, Status status, Timestamp endTimestamp)
static SpanData
SpanData. create(SpanContext context, SpanId parentSpanId, java.lang.Boolean hasRemoteParent, java.lang.String name, Span.Kind kind, Timestamp startTimestamp, SpanData.Attributes attributes, SpanData.TimedEvents<Annotation> annotations, SpanData.TimedEvents<? extends BaseMessageEvent> messageOrNetworkEvents, SpanData.Links links, java.lang.Integer childSpanCount, Status status, Timestamp endTimestamp)
Returns a new immutableSpanData
.Constructors in io.opencensus.trace.export with parameters of type SpanId Constructor Description AutoValue_SpanData(SpanContext context, SpanId parentSpanId, java.lang.Boolean hasRemoteParent, java.lang.String name, Span.Kind kind, Timestamp startTimestamp, SpanData.Attributes attributes, SpanData.TimedEvents<Annotation> annotations, SpanData.TimedEvents<MessageEvent> messageEvents, SpanData.Links links, java.lang.Integer childSpanCount, Status status, Timestamp endTimestamp)
-
Uses of SpanId in io.opencensus.trace.samplers
Methods in io.opencensus.trace.samplers with parameters of type SpanId 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)
-