Uses of Class
io.opencensus.trace.SpanContext
Packages that use SpanContext
Package
Description
API for distributed tracing.
-
Uses of SpanContext in io.opencensus.contrib.exemplar.util
Methods in io.opencensus.contrib.exemplar.util that return SpanContextModifier and TypeMethodDescriptionabstract SpanContextAttachmentValueSpanContext.getSpanContext()Returns the span context attachment value.Methods in io.opencensus.contrib.exemplar.util with parameters of type SpanContextModifier and TypeMethodDescriptionstatic AttachmentValueSpanContextAttachmentValueSpanContext.create(SpanContext spanContext) Creates anAttachmentValueSpanContext.static voidExemplarUtils.putSpanContextAttachments(MeasureMap measureMap, SpanContext spanContext) Puts aSpanContextinto the attachments of the givenMeasureMap. -
Uses of SpanContext in io.opencensus.implcore.trace
Methods in io.opencensus.implcore.trace with parameters of type SpanContextModifier and TypeMethodDescriptionTracerImpl.spanBuilderWithRemoteParent(String spanName, SpanContext remoteParentSpanContext) static 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 SpanContext in io.opencensus.implcore.trace.propagation
Methods in io.opencensus.implcore.trace.propagation that return SpanContextModifier and TypeMethodDescription<C> SpanContextTraceContextFormat.extract(C carrier, TextFormat.Getter<C> getter) Methods in io.opencensus.implcore.trace.propagation with parameters of type SpanContextModifier and TypeMethodDescription<C> voidTraceContextFormat.inject(SpanContext spanContext, C carrier, TextFormat.Setter<C> setter) -
Uses of SpanContext in io.opencensus.trace
Fields in io.opencensus.trace declared as SpanContextModifier and TypeFieldDescriptionstatic final SpanContextSpanContext.INVALIDThe invalidSpanContext.Methods in io.opencensus.trace that return SpanContextModifier and TypeMethodDescriptionstatic 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.final SpanContextSpan.getContext()Returns theSpanContextassociated with thisSpan.Methods in io.opencensus.trace with parameters of type SpanContextModifier and TypeMethodDescriptionstatic LinkLink.fromSpanContext(SpanContext context, Link.Type type) Returns a newLink.static LinkLink.fromSpanContext(SpanContext context, Link.Type type, Map<String, AttributeValue> attributes) Returns a newLink.abstract booleanSampler.shouldSample(SpanContext parentContext, Boolean hasRemoteParent, TraceId traceId, SpanId spanId, String name, List<Span> parentLinks) Called duringSpancreation to make a sampling decision.abstract SpanBuilderTracer.spanBuilderWithRemoteParent(String spanName, SpanContext remoteParentSpanContext) Returns aSpanBuilderto create and start a new childSpan(or root if parent isSpanContext.INVALIDornull), with parent being the remoteSpandesignated by theSpanContext.Constructors in io.opencensus.trace with parameters of type SpanContextModifierConstructorDescriptionprotectedSpan(SpanContext context, EnumSet<Span.Options> options) Creates a newSpan. -
Uses of SpanContext in io.opencensus.trace.export
Methods in io.opencensus.trace.export that return SpanContextModifier and TypeMethodDescriptionabstract SpanContextSpanData.getContext()Returns theSpanContextassociated with thisSpan.Methods in io.opencensus.trace.export with parameters of type SpanContextModifier 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. -
Uses of SpanContext in io.opencensus.trace.propagation
Methods in io.opencensus.trace.propagation that return SpanContextModifier and TypeMethodDescriptionabstract <C> SpanContextTextFormat.extract(C carrier, TextFormat.Getter<C> getter) Extracts the span context from upstream.BinaryFormat.fromBinaryValue(byte[] bytes) Deprecated.BinaryFormat.fromByteArray(byte[] bytes) Parses theSpanContextfrom a byte array using the binary format.Methods in io.opencensus.trace.propagation with parameters of type SpanContextModifier and TypeMethodDescriptionabstract <C> voidTextFormat.inject(SpanContext spanContext, C carrier, TextFormat.Setter<C> setter) Injects the span context downstream.byte[]BinaryFormat.toBinaryValue(SpanContext spanContext) Deprecated.byte[]BinaryFormat.toByteArray(SpanContext spanContext) Serializes aSpanContextinto a byte array using the binary format.
SpanContext.create(TraceId, SpanId, TraceOptions, Tracestate).