Uses of Class
io.opencensus.trace.SpanId
Packages that use SpanId
Package
Description
API for distributed tracing.
-
Uses of SpanId in io.opencensus.implcore.trace
Methods in io.opencensus.implcore.trace with parameters of type SpanIdModifier and TypeMethodDescriptionstatic RecordEventsSpanImplRecordEventsSpanImpl.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. -
Uses of SpanId in io.opencensus.trace
Classes in io.opencensus.trace that implement interfaces with type arguments of type SpanIdFields in io.opencensus.trace declared as SpanIdMethods in io.opencensus.trace that return SpanIdModifier and TypeMethodDescriptionstatic SpanIdSpanId.fromBytes(byte[] src) Returns aSpanIdbuilt from a byte representation.static SpanIdSpanId.fromBytes(byte[] src, int srcOffset) Returns aSpanIdwhose representation is copied from thesrcbeginning at thesrcOffsetoffset.static SpanIdSpanId.fromLowerBase16(CharSequence src) Returns aSpanIdbuilt from a lowercase base16 representation.static SpanIdSpanId.fromLowerBase16(CharSequence src, int srcOffset) Returns aSpanIdbuilt from a lowercase base16 representation.static SpanIdSpanId.generateRandomId(Random random) Generates a new randomSpanId.abstract SpanIdLink.getSpanId()Returns theSpanId.SpanContext.getSpanId()Returns the span identifier associated with thisSpanContext.Methods in io.opencensus.trace with parameters of type SpanIdModifier and TypeMethodDescriptionintstatic SpanContextSpanContext.create(TraceId traceId, SpanId spanId, TraceOptions traceOptions) Deprecated.static SpanContextSpanContext.create(TraceId traceId, SpanId spanId, TraceOptions traceOptions, Tracestate tracestate) Creates a newSpanContextwith the given identifiers and options.abstract booleanSampler.shouldSample(SpanContext parentContext, Boolean hasRemoteParent, TraceId traceId, SpanId spanId, String name, List<Span> parentLinks) Called duringSpancreation to make a sampling decision. -
Uses of SpanId in io.opencensus.trace.export
Methods in io.opencensus.trace.export that return SpanIdModifier and TypeMethodDescriptionabstract SpanIdSpanData.getParentSpanId()Returns the parentSpanIdornullif theSpanis a rootSpan.Methods in io.opencensus.trace.export with parameters of type SpanIdModifier and TypeMethodDescriptionstatic SpanDataSpanData.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 SpanDataSpanData.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.
SpanContext.create(TraceId, SpanId, TraceOptions, Tracestate).