Uses of Class
io.opencensus.trace.SpanId
Packages that use SpanId
Package
Description
API for distributed tracing.
-
Uses of SpanId in io.opencensus.contrib.http.util
Methods in io.opencensus.contrib.http.util that return SpanIdMethods in io.opencensus.contrib.http.util with parameters of type SpanIdModifier and TypeMethodDescriptionprivate static long
CloudTraceFormat.spanIdToLong
(SpanId spanId) -
Uses of SpanId in io.opencensus.implcore.trace
Fields in io.opencensus.implcore.trace declared as SpanIdMethods in io.opencensus.implcore.trace with parameters of type SpanIdModifier and TypeMethodDescriptionprivate static boolean
SpanBuilderImpl.makeSamplingDecision
(SpanContext parent, Boolean hasRemoteParent, String name, Sampler sampler, List<Span> parentLinks, TraceId traceId, SpanId spanId, TraceParams activeTraceParams) static RecordEventsSpanImpl
RecordEventsSpanImpl.startSpan
(SpanContext context, String name, Span.Kind kind, SpanId parentSpanId, 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 SpanIdModifierConstructorDescriptionprivate
RecordEventsSpanImpl
(SpanContext context, String name, Span.Kind kind, SpanId parentSpanId, 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 SpanIdModifier and TypeFieldDescriptionstatic final SpanId
SpanId.INVALID
The invalidSpanId
.private final SpanId
AutoValue_Link.spanId
private final SpanId
SpanContext.spanId
Methods in io.opencensus.trace that return SpanIdModifier and TypeMethodDescriptionstatic 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
(CharSequence src) Returns aSpanId
built from a lowercase base16 representation.static SpanId
SpanId.fromLowerBase16
(CharSequence src, int srcOffset) Returns aSpanId
built from a lowercase base16 representation.static SpanId
SpanId.generateRandomId
(Random random) Generates a new randomSpanId
.AutoValue_Link.getSpanId()
abstract SpanId
Link.getSpanId()
Returns theSpanId
.SpanContext.getSpanId()
Returns the span identifier associated with thisSpanContext
.Methods in io.opencensus.trace with parameters of type SpanIdModifier 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 SpanIdModifierConstructorDescription(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 SpanId in io.opencensus.trace.export
Fields in io.opencensus.trace.export declared as SpanIdMethods in io.opencensus.trace.export that return SpanIdModifier and TypeMethodDescriptionAutoValue_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 SpanIdModifier and TypeMethodDescriptionstatic SpanData
SpanData.create
(SpanContext context, SpanId parentSpanId, Boolean hasRemoteParent, String name, Timestamp startTimestamp, SpanData.Attributes attributes, SpanData.TimedEvents<Annotation> annotations, SpanData.TimedEvents<? extends BaseMessageEvent> messageOrNetworkEvents, SpanData.Links links, Integer childSpanCount, Status status, Timestamp endTimestamp) static SpanData
SpanData.create
(SpanContext context, SpanId parentSpanId, Boolean hasRemoteParent, String name, Span.Kind kind, Timestamp startTimestamp, SpanData.Attributes attributes, SpanData.TimedEvents<Annotation> annotations, SpanData.TimedEvents<? extends BaseMessageEvent> messageOrNetworkEvents, SpanData.Links links, Integer childSpanCount, Status status, Timestamp endTimestamp) Returns a new immutableSpanData
.Constructors in io.opencensus.trace.export with parameters of type SpanIdModifierConstructorDescription(package private)
AutoValue_SpanData
(SpanContext context, SpanId parentSpanId, Boolean hasRemoteParent, String name, Span.Kind kind, Timestamp startTimestamp, SpanData.Attributes attributes, SpanData.TimedEvents<Annotation> annotations, SpanData.TimedEvents<MessageEvent> messageEvents, SpanData.Links links, Integer childSpanCount, Status status, Timestamp endTimestamp) -
Uses of SpanId in io.opencensus.trace.samplers
Methods in io.opencensus.trace.samplers with parameters of type SpanIdModifier 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)
.