Uses of Class
io.opencensus.trace.SpanBuilder
Packages that use SpanBuilder
-
Uses of SpanBuilder in io.opencensus.implcore.trace
Subclasses of SpanBuilder in io.opencensus.implcore.traceModifier and TypeClassDescription(package private) final class
Implementation of theSpanBuilder
.Methods in io.opencensus.implcore.trace that return SpanBuilderModifier and TypeMethodDescriptionTracerImpl.spanBuilderWithExplicitParent
(String spanName, Span parent) TracerImpl.spanBuilderWithRemoteParent
(String spanName, SpanContext remoteParentSpanContext) -
Uses of SpanBuilder in io.opencensus.trace
Subclasses of SpanBuilder in io.opencensus.traceModifier and TypeClassDescription(package private) static final class
Methods in io.opencensus.trace that return SpanBuilderModifier and TypeMethodDescriptionSpanBuilder.NoopSpanBuilder.setParentLinks
(List<Span> parentLinks) abstract SpanBuilder
SpanBuilder.setParentLinks
(List<Span> parentLinks) Sets theList
of parent links.SpanBuilder.NoopSpanBuilder.setRecordEvents
(boolean recordEvents) abstract SpanBuilder
SpanBuilder.setRecordEvents
(boolean recordEvents) Sets the optionSpan.Options.RECORD_EVENTS
for the newly createdSpan
.SpanBuilder.NoopSpanBuilder.setSampler
(Sampler sampler) abstract SpanBuilder
SpanBuilder.setSampler
(Sampler sampler) Sets theSampler
to use.SpanBuilder.NoopSpanBuilder.setSpanKind
(Span.Kind spanKind) SpanBuilder.setSpanKind
(Span.Kind spanKind) Sets theSpan.Kind
for the newly createdSpan
.final SpanBuilder
Tracer.spanBuilder
(String spanName) Returns aSpanBuilder
to create and start a new childSpan
as a child of to the currentSpan
if any, otherwise creates a rootSpan
.Tracer.NoopTracer.spanBuilderWithExplicitParent
(String spanName, Span parent) abstract SpanBuilder
Tracer.spanBuilderWithExplicitParent
(String spanName, Span parent) Returns aSpanBuilder
to create and start a new childSpan
(or root if parent isnull
or has an invalidSpanContext
), with parent being the designatedSpan
.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 isSpanContext.INVALID
ornull
), with parent being the remoteSpan
designated by theSpanContext
.