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
Fields in io.opencensus.contrib.exemplar.util declared as SpanContextModifier and TypeFieldDescriptionprivate final SpanContext
AutoValue_AttachmentValueSpanContext.spanContext
Methods in io.opencensus.contrib.exemplar.util that return SpanContextModifier and TypeMethodDescriptionabstract SpanContext
AttachmentValueSpanContext.getSpanContext()
Returns the span context attachment value.AutoValue_AttachmentValueSpanContext.getSpanContext()
Methods in io.opencensus.contrib.exemplar.util with parameters of type SpanContextModifier and TypeMethodDescriptionstatic AttachmentValueSpanContext
AttachmentValueSpanContext.create
(SpanContext spanContext) Creates anAttachmentValueSpanContext
.static void
ExemplarUtils.putSpanContextAttachments
(MeasureMap measureMap, SpanContext spanContext) Puts aSpanContext
into the attachments of the givenMeasureMap
.Constructors in io.opencensus.contrib.exemplar.util with parameters of type SpanContextModifierConstructorDescription(package private)
AutoValue_AttachmentValueSpanContext
(SpanContext spanContext) -
Uses of SpanContext in io.opencensus.contrib.http.util
Methods in io.opencensus.contrib.http.util that return SpanContextModifier and TypeMethodDescription<C> SpanContext
CloudTraceFormat.extract
(C carrier, TextFormat.Getter<C> getter) Methods in io.opencensus.contrib.http.util with parameters of type SpanContextModifier and TypeMethodDescription<C> void
CloudTraceFormat.inject
(SpanContext spanContext, C carrier, TextFormat.Setter<C> setter) -
Uses of SpanContext in io.opencensus.contrib.logcorrelation.log4j2
Methods in io.opencensus.contrib.logcorrelation.log4j2 that return SpanContextModifier and TypeMethodDescriptionprivate static SpanContext
ContextDataUtils.getCurrentSpanContext()
-
Uses of SpanContext in io.opencensus.implcore.trace
Fields in io.opencensus.implcore.trace declared as SpanContextModifier and TypeFieldDescriptionprivate final SpanContext
SpanBuilderImpl.remoteParentSpanContext
Methods in io.opencensus.implcore.trace with parameters of type SpanContextModifier and TypeMethodDescription(package private) static NoRecordEventsSpanImpl
NoRecordEventsSpanImpl.create
(SpanContext context) (package private) static SpanBuilderImpl
SpanBuilderImpl.createWithRemoteParent
(String spanName, SpanContext remoteParentSpanContext, SpanBuilderImpl.Options options) private static boolean
SpanBuilderImpl.makeSamplingDecision
(SpanContext parent, Boolean hasRemoteParent, String name, Sampler sampler, List<Span> parentLinks, TraceId traceId, SpanId spanId, TraceParams activeTraceParams) TracerImpl.spanBuilderWithRemoteParent
(String spanName, SpanContext remoteParentSpanContext) 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.private Span
SpanBuilderImpl.startSpanInternal
(SpanContext parentContext, Boolean hasRemoteParent, String name, Sampler sampler, List<Span> parentLinks, Boolean recordEvents, Span.Kind kind, Span parentSpan) Constructors in io.opencensus.implcore.trace with parameters of type SpanContextModifierConstructorDescriptionprivate
NoRecordEventsSpanImpl
(SpanContext context) private
RecordEventsSpanImpl
(SpanContext context, String name, Span.Kind kind, SpanId parentSpanId, Boolean hasRemoteParent, TraceParams traceParams, RecordEventsSpanImpl.StartEndHandler startEndHandler, TimestampConverter timestampConverter, Clock clock) private
SpanBuilderImpl
(String name, SpanContext remoteParentSpanContext, Span parent, SpanBuilderImpl.Options options) -
Uses of SpanContext in io.opencensus.implcore.trace.propagation
Methods in io.opencensus.implcore.trace.propagation that return SpanContextModifier and TypeMethodDescription<C> SpanContext
B3Format.extract
(C carrier, TextFormat.Getter<C> getter) <C> SpanContext
TraceContextFormat.extract
(C carrier, TextFormat.Getter<C> getter) BinaryFormatImpl.fromByteArray
(byte[] bytes) Methods in io.opencensus.implcore.trace.propagation with parameters of type SpanContextModifier and TypeMethodDescription<C> void
B3Format.inject
(SpanContext spanContext, C carrier, TextFormat.Setter<C> setter) <C> void
TraceContextFormat.inject
(SpanContext spanContext, C carrier, TextFormat.Setter<C> setter) byte[]
BinaryFormatImpl.toByteArray
(SpanContext spanContext) -
Uses of SpanContext in io.opencensus.trace
Fields in io.opencensus.trace declared as SpanContextModifier and TypeFieldDescriptionprivate final SpanContext
Span.context
static final SpanContext
SpanContext.INVALID
The invalidSpanContext
.Methods in io.opencensus.trace that return SpanContextModifier and TypeMethodDescriptionstatic 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.final SpanContext
Span.getContext()
Returns theSpanContext
associated with thisSpan
.Methods in io.opencensus.trace with parameters of type SpanContextModifier and TypeMethodDescription(package private) static SpanBuilder.NoopSpanBuilder
SpanBuilder.NoopSpanBuilder.createWithRemoteParent
(String spanName, SpanContext remoteParentSpanContext) static Link
Link.fromSpanContext
(SpanContext context, Link.Type type) Returns a newLink
.static Link
Link.fromSpanContext
(SpanContext context, Link.Type type, Map<String, AttributeValue> attributes) Returns a newLink
.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.Tracer.NoopTracer.spanBuilderWithRemoteParent
(String spanName, SpanContext remoteParentSpanContext) abstract SpanBuilder
Tracer.spanBuilderWithRemoteParent
(String spanName, SpanContext remoteParentSpanContext) Returns aSpanBuilder
to create and start a new childSpan
(or root if parent isINVALID
ornull
), with parent being the remoteSpan
designated by theSpanContext
.Constructors in io.opencensus.trace with parameters of type SpanContextModifierConstructorDescriptionprotected
Span
(SpanContext context, EnumSet<Span.Options> options) Creates a newSpan
. -
Uses of SpanContext in io.opencensus.trace.export
Fields in io.opencensus.trace.export declared as SpanContextMethods in io.opencensus.trace.export that return SpanContextModifier and TypeMethodDescriptionAutoValue_SpanData.getContext()
abstract SpanContext
SpanData.getContext()
Returns theSpanContext
associated with thisSpan
.Methods in io.opencensus.trace.export with parameters of type SpanContextModifier 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 SpanContextModifierConstructorDescription(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 SpanContext in io.opencensus.trace.propagation
Methods in io.opencensus.trace.propagation that return SpanContextModifier and TypeMethodDescriptionabstract <C> SpanContext
TextFormat.extract
(C carrier, TextFormat.Getter<C> getter) Extracts the span context from upstream.<C> SpanContext
TextFormat.NoopTextFormat.extract
(C carrier, TextFormat.Getter<C> getter) BinaryFormat.fromBinaryValue
(byte[] bytes) Deprecated.BinaryFormat.fromByteArray
(byte[] bytes) Parses theSpanContext
from a byte array using the binary format.BinaryFormat.NoopBinaryFormat.fromByteArray
(byte[] bytes) Methods in io.opencensus.trace.propagation with parameters of type SpanContextModifier and TypeMethodDescriptionabstract <C> void
TextFormat.inject
(SpanContext spanContext, C carrier, TextFormat.Setter<C> setter) Injects the span context downstream.<C> void
TextFormat.NoopTextFormat.inject
(SpanContext spanContext, C carrier, TextFormat.Setter<C> setter) byte[]
BinaryFormat.toBinaryValue
(SpanContext spanContext) Deprecated.byte[]
BinaryFormat.NoopBinaryFormat.toByteArray
(SpanContext spanContext) byte[]
BinaryFormat.toByteArray
(SpanContext spanContext) Serializes aSpanContext
into a byte array using the binary format. -
Uses of SpanContext in io.opencensus.trace.samplers
Methods in io.opencensus.trace.samplers with parameters of type SpanContextModifier 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)
create(TraceId, SpanId, TraceOptions, Tracestate)
.