Uses of Class
io.opencensus.trace.Span
Packages that use Span
Package
Description
API for distributed tracing.
-
Uses of Span in io.opencensus.contrib.http
Fields in io.opencensus.contrib.http declared as SpanMethods in io.opencensus.contrib.http that return SpanModifier and TypeMethodDescriptionAbstractHttpHandler.getSpanFromContext
(HttpRequestContext context) RetrievesSpan
from theHttpRequestContext
.Methods in io.opencensus.contrib.http with parameters of type SpanModifier and TypeMethodDescription(package private) final void
AbstractHttpHandler.addSpanRequestAttributes
(Span span, Q request, HttpExtractor<Q, P> extractor) (package private) HttpRequestContext
AbstractHttpHandler.getNewContext
(Span span, TagContext tagContext) HttpClientHandler.handleStart
(Span parent, C carrier, Q request) Instrument a request for tracing and stats before it is sent.private static void
AbstractHttpHandler.putAttributeIfNotEmptyOrNull
(Span span, String key, String value) (package private) static void
AbstractHttpHandler.recordMessageEvent
(Span span, long id, MessageEvent.Type type, long uncompressedMessageSize, long compressedMessageSize) A convenience to record aMessageEvent
with given parameters.(package private) void
Constructors in io.opencensus.contrib.http with parameters of type SpanModifierConstructorDescription(package private)
HttpRequestContext
(Span span, TagContext tagContext) -
Uses of Span in io.opencensus.contrib.http.jetty.client
Fields in io.opencensus.contrib.http.jetty.client declared as SpanConstructors in io.opencensus.contrib.http.jetty.client with parameters of type SpanModifierConstructorDescription(package private)
HttpRequestListener
(Span parent, HttpClientHandler<org.eclipse.jetty.client.api.Request, org.eclipse.jetty.client.api.Response, org.eclipse.jetty.client.api.Request> handler) -
Uses of Span in io.opencensus.implcore.trace
Subclasses of Span in io.opencensus.implcore.traceModifier and TypeClassDescription(package private) final class
Implementation for theSpan
class that does not record trace events.final class
Implementation for theSpan
class that records trace events.Fields in io.opencensus.implcore.trace declared as SpanFields in io.opencensus.implcore.trace with type parameters of type SpanMethods in io.opencensus.implcore.trace that return SpanModifier and TypeMethodDescriptionSpanBuilderImpl.startSpan()
private Span
SpanBuilderImpl.startSpanInternal
(SpanContext parentContext, Boolean hasRemoteParent, String name, Sampler sampler, List<Span> parentLinks, Boolean recordEvents, Span.Kind kind, Span parentSpan) Methods in io.opencensus.implcore.trace with parameters of type SpanModifier and TypeMethodDescription(package private) static SpanBuilderImpl
SpanBuilderImpl.createWithParent
(String spanName, Span parent, SpanBuilderImpl.Options options) private static void
TracerImpl.spanBuilderWithExplicitParent
(String spanName, Span parent) private Span
SpanBuilderImpl.startSpanInternal
(SpanContext parentContext, Boolean hasRemoteParent, String name, Sampler sampler, List<Span> parentLinks, Boolean recordEvents, Span.Kind kind, Span parentSpan) Method parameters in io.opencensus.implcore.trace with type arguments of type SpanModifier and TypeMethodDescriptionprivate static boolean
SpanBuilderImpl.isAnyParentLinkSampled
(List<Span> parentLinks) private static void
private static boolean
SpanBuilderImpl.makeSamplingDecision
(SpanContext parent, Boolean hasRemoteParent, String name, Sampler sampler, List<Span> parentLinks, TraceId traceId, SpanId spanId, TraceParams activeTraceParams) SpanBuilderImpl.setParentLinks
(List<Span> parentLinks) 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 SpanModifierConstructorDescriptionprivate
SpanBuilderImpl
(String name, SpanContext remoteParentSpanContext, Span parent, SpanBuilderImpl.Options options) -
Uses of Span in io.opencensus.trace
Subclasses of Span in io.opencensus.traceModifier and TypeClassDescriptionfinal class
TheBlankSpan
is a singleton class, which is the defaultSpan
that is used when noSpan
implementation is available.Fields in io.opencensus.trace declared as SpanModifier and TypeFieldDescriptionprivate final Span
CurrentSpanUtils.CallableInSpan.span
private final Span
CurrentSpanUtils.RunnableInSpan.span
private final Span
CurrentSpanUtils.ScopeInSpan.span
Methods in io.opencensus.trace that return SpanModifier and TypeMethodDescription(package private) static Span
CurrentSpanUtils.getCurrentSpan()
Returns TheSpan
from the current context.final Span
Tracer.getCurrentSpan()
Gets the current Span from the current Context.ContextManager.getValue
(ContextHandle contextHandle) SpanBuilder.NoopSpanBuilder.startSpan()
abstract Span
SpanBuilder.startSpan()
Starts a newSpan
.Methods in io.opencensus.trace with parameters of type SpanModifier and TypeMethodDescription(package private) static SpanBuilder.NoopSpanBuilder
SpanBuilder.NoopSpanBuilder.createWithParent
(String spanName, Span parent) private static void
CurrentSpanUtils.setErrorStatus
(Span span, Throwable t) 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
.(package private) static Scope
Enters the scope of code where the givenSpan
is in the current context, and returns an object that represents that scope.(package private) static Runnable
(package private) static <C> Callable
<C> final Scope
Enters the scope of code where the givenSpan
is in the current Context, and returns an object that represents that scope.final Runnable
Returns aRunnable
that runs the given task with the givenSpan
in the current context.final <C> Callable
<C> Returns aCallable
that runs the given task with the givenSpan
in the current context.ContextManager.withValue
(ContextHandle contextHandle, Span span) Method parameters in io.opencensus.trace with type arguments of type SpanModifier and TypeMethodDescriptionSpanBuilder.NoopSpanBuilder.setParentLinks
(List<Span> parentLinks) abstract SpanBuilder
SpanBuilder.setParentLinks
(List<Span> parentLinks) Sets theList
of parent links.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.Constructors in io.opencensus.trace with parameters of type SpanModifierConstructorDescriptionprivate
CallableInSpan
(Span span, Callable<V> callable, boolean endSpan) private
RunnableInSpan
(Span span, Runnable runnable, boolean endSpan) private
ScopeInSpan
(Span span, boolean endSpan) Constructs a newCurrentSpanUtils.ScopeInSpan
. -
Uses of Span in io.opencensus.trace.samplers
Method parameters in io.opencensus.trace.samplers with type arguments of type SpanModifier 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) -
Uses of Span in io.opencensus.trace.unsafe
Fields in io.opencensus.trace.unsafe with type parameters of type SpanModifier and TypeFieldDescriptionprivate static final io.grpc.Context.Key
<Span> ContextUtils.CONTEXT_SPAN_KEY
Deprecated.TheContext.Key
used to interact withContext
.Methods in io.opencensus.trace.unsafe that return SpanModifier and TypeMethodDescriptionstatic Span
ContextHandleUtils.getValue
(ContextHandle context) Returns the value from the specifiedContextHandle
.ContextManagerImpl.getValue
(ContextHandle contextHandle) static Span
ContextUtils.getValue
(io.grpc.Context context) Deprecated.Returns the value from the specifiedContext
.Methods in io.opencensus.trace.unsafe with parameters of type SpanModifier and TypeMethodDescriptionstatic ContextHandle
ContextHandleUtils.withValue
(ContextHandle context, Span span) Creates a newContextHandle
with the given value set.ContextManagerImpl.withValue
(ContextHandle contextHandle, Span span) static io.grpc.Context
Deprecated.Creates a newContext
with the given value set.