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 SpanContextAutoValue_AttachmentValueSpanContext.spanContextMethods in io.opencensus.contrib.exemplar.util that return SpanContextModifier and TypeMethodDescriptionabstract SpanContextAttachmentValueSpanContext.getSpanContext()Returns the span context attachment value.AutoValue_AttachmentValueSpanContext.getSpanContext()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.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> SpanContextCloudTraceFormat.extract(C carrier, TextFormat.Getter<C> getter) Methods in io.opencensus.contrib.http.util with parameters of type SpanContextModifier and TypeMethodDescription<C> voidCloudTraceFormat.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 SpanContextContextDataUtils.getCurrentSpanContext() -
Uses of SpanContext in io.opencensus.implcore.trace
Fields in io.opencensus.implcore.trace declared as SpanContextModifier and TypeFieldDescriptionprivate final SpanContextSpanBuilderImpl.remoteParentSpanContextMethods in io.opencensus.implcore.trace with parameters of type SpanContextModifier and TypeMethodDescription(package private) static NoRecordEventsSpanImplNoRecordEventsSpanImpl.create(SpanContext context) (package private) static SpanBuilderImplSpanBuilderImpl.createWithRemoteParent(String spanName, SpanContext remoteParentSpanContext, SpanBuilderImpl.Options options) private static booleanSpanBuilderImpl.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 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.private SpanSpanBuilderImpl.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 SpanContextModifierConstructorDescriptionprivateNoRecordEventsSpanImpl(SpanContext context) privateRecordEventsSpanImpl(SpanContext context, String name, Span.Kind kind, SpanId parentSpanId, Boolean hasRemoteParent, TraceParams traceParams, RecordEventsSpanImpl.StartEndHandler startEndHandler, TimestampConverter timestampConverter, Clock clock) privateSpanBuilderImpl(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> SpanContextB3Format.extract(C carrier, TextFormat.Getter<C> getter) <C> SpanContextTraceContextFormat.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> voidB3Format.inject(SpanContext spanContext, C carrier, TextFormat.Setter<C> setter) <C> voidTraceContextFormat.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 SpanContextSpan.contextstatic 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 TypeMethodDescription(package private) static SpanBuilder.NoopSpanBuilderSpanBuilder.NoopSpanBuilder.createWithRemoteParent(String spanName, SpanContext remoteParentSpanContext) static 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.Tracer.NoopTracer.spanBuilderWithRemoteParent(String spanName, SpanContext remoteParentSpanContext) 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
Fields in io.opencensus.trace.export declared as SpanContextMethods in io.opencensus.trace.export that return SpanContextModifier and TypeMethodDescriptionAutoValue_SpanData.getContext()abstract 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.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> SpanContextTextFormat.extract(C carrier, TextFormat.Getter<C> getter) Extracts the span context from upstream.<C> SpanContextTextFormat.NoopTextFormat.extract(C carrier, TextFormat.Getter<C> getter) BinaryFormat.fromBinaryValue(byte[] bytes) Deprecated.BinaryFormat.fromByteArray(byte[] bytes) Parses theSpanContextfrom 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> voidTextFormat.inject(SpanContext spanContext, C carrier, TextFormat.Setter<C> setter) Injects the span context downstream.<C> voidTextFormat.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 aSpanContextinto 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 TypeMethodDescriptionbooleanAlwaysSampleSampler.shouldSample(SpanContext parentContext, Boolean hasRemoteParent, TraceId traceId, SpanId spanId, String name, List<Span> parentLinks) booleanNeverSampleSampler.shouldSample(SpanContext parentContext, Boolean hasRemoteParent, TraceId traceId, SpanId spanId, String name, List<Span> parentLinks) final booleanProbabilitySampler.shouldSample(SpanContext parentContext, Boolean hasRemoteParent, TraceId traceId, SpanId spanId, String name, List<Span> parentLinks)
SpanContext.create(TraceId, SpanId, TraceOptions, Tracestate).