Uses of Class
io.opencensus.trace.Span
-
Packages that use Span Package Description io.opencensus.contrib.http io.opencensus.contrib.http.jetty.client io.opencensus.implcore.trace io.opencensus.trace API for distributed tracing.io.opencensus.trace.samplers io.opencensus.trace.unsafe -
-
Uses of Span in io.opencensus.contrib.http
Fields in io.opencensus.contrib.http declared as Span Modifier and Type Field Description (package private) Span
HttpRequestContext. span
Methods in io.opencensus.contrib.http that return Span Modifier and Type Method Description Span
AbstractHttpHandler. getSpanFromContext(HttpRequestContext context)
RetrievesSpan
from theHttpRequestContext
.Methods in io.opencensus.contrib.http with parameters of type Span Modifier and Type Method Description (package private) void
AbstractHttpHandler. addSpanRequestAttributes(Span span, Q request, HttpExtractor<Q,P> extractor)
(package private) HttpRequestContext
AbstractHttpHandler. getNewContext(Span span, TagContext tagContext)
HttpRequestContext
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, java.lang.String key, java.lang.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
AbstractHttpHandler. spanEnd(Span span, int httpStatus, java.lang.Throwable error)
Constructors in io.opencensus.contrib.http with parameters of type Span Constructor Description 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 Span Modifier and Type Field Description private Span
HttpRequestListener. parent
Constructors in io.opencensus.contrib.http.jetty.client with parameters of type Span Constructor Description 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.trace Modifier and Type Class Description (package private) class
NoRecordEventsSpanImpl
Implementation for theSpan
class that does not record trace events.class
RecordEventsSpanImpl
Implementation for theSpan
class that records trace events.Fields in io.opencensus.implcore.trace declared as Span Modifier and Type Field Description private Span
SpanBuilderImpl. parent
Fields in io.opencensus.implcore.trace with type parameters of type Span Modifier and Type Field Description private java.util.List<Span>
SpanBuilderImpl. parentLinks
Methods in io.opencensus.implcore.trace that return Span Modifier and Type Method Description Span
SpanBuilderImpl. startSpan()
private Span
SpanBuilderImpl. startSpanInternal(SpanContext parentContext, java.lang.Boolean hasRemoteParent, java.lang.String name, Sampler sampler, java.util.List<Span> parentLinks, java.lang.Boolean recordEvents, Span.Kind kind, Span parentSpan)
Methods in io.opencensus.implcore.trace with parameters of type Span Modifier and Type Method Description (package private) static SpanBuilderImpl
SpanBuilderImpl. createWithParent(java.lang.String spanName, Span parent, SpanBuilderImpl.Options options)
private static void
SpanBuilderImpl. linkSpans(Span span, java.util.List<Span> parentLinks)
SpanBuilder
TracerImpl. spanBuilderWithExplicitParent(java.lang.String spanName, Span parent)
private Span
SpanBuilderImpl. startSpanInternal(SpanContext parentContext, java.lang.Boolean hasRemoteParent, java.lang.String name, Sampler sampler, java.util.List<Span> parentLinks, java.lang.Boolean recordEvents, Span.Kind kind, Span parentSpan)
Method parameters in io.opencensus.implcore.trace with type arguments of type Span Modifier and Type Method Description private static boolean
SpanBuilderImpl. isAnyParentLinkSampled(java.util.List<Span> parentLinks)
private static void
SpanBuilderImpl. linkSpans(Span span, java.util.List<Span> parentLinks)
private static boolean
SpanBuilderImpl. makeSamplingDecision(SpanContext parent, java.lang.Boolean hasRemoteParent, java.lang.String name, Sampler sampler, java.util.List<Span> parentLinks, TraceId traceId, SpanId spanId, TraceParams activeTraceParams)
SpanBuilderImpl
SpanBuilderImpl. setParentLinks(java.util.List<Span> parentLinks)
private Span
SpanBuilderImpl. startSpanInternal(SpanContext parentContext, java.lang.Boolean hasRemoteParent, java.lang.String name, Sampler sampler, java.util.List<Span> parentLinks, java.lang.Boolean recordEvents, Span.Kind kind, Span parentSpan)
Constructors in io.opencensus.implcore.trace with parameters of type Span Constructor Description SpanBuilderImpl(java.lang.String name, SpanContext remoteParentSpanContext, Span parent, SpanBuilderImpl.Options options)
-
Uses of Span in io.opencensus.trace
Subclasses of Span in io.opencensus.trace Modifier and Type Class Description class
BlankSpan
TheBlankSpan
is a singleton class, which is the defaultSpan
that is used when noSpan
implementation is available.Fields in io.opencensus.trace declared as Span Modifier and Type Field Description private Span
CurrentSpanUtils.CallableInSpan. span
private Span
CurrentSpanUtils.RunnableInSpan. span
private Span
CurrentSpanUtils.ScopeInSpan. span
Methods in io.opencensus.trace that return Span Modifier and Type Method Description (package private) static Span
CurrentSpanUtils. getCurrentSpan()
Returns TheSpan
from the current context.Span
Tracer. getCurrentSpan()
Gets the current Span from the current Context.Span
ContextManager. getValue(ContextHandle contextHandle)
Span
SpanBuilder.NoopSpanBuilder. startSpan()
abstract Span
SpanBuilder. startSpan()
Starts a newSpan
.Methods in io.opencensus.trace with parameters of type Span Modifier and Type Method Description (package private) static SpanBuilder.NoopSpanBuilder
SpanBuilder.NoopSpanBuilder. createWithParent(java.lang.String spanName, Span parent)
private static void
CurrentSpanUtils. setErrorStatus(Span span, java.lang.Throwable t)
SpanBuilder
Tracer.NoopTracer. spanBuilderWithExplicitParent(java.lang.String spanName, Span parent)
abstract SpanBuilder
Tracer. spanBuilderWithExplicitParent(java.lang.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
CurrentSpanUtils. withSpan(Span span, boolean endSpan)
Enters the scope of code where the givenSpan
is in the current context, and returns an object that represents that scope.(package private) static java.lang.Runnable
CurrentSpanUtils. withSpan(Span span, boolean endSpan, java.lang.Runnable runnable)
Wraps aRunnable
so that it executes with thespan
as the currentSpan
.(package private) static <C> java.util.concurrent.Callable<C>
CurrentSpanUtils. withSpan(Span span, boolean endSpan, java.util.concurrent.Callable<C> callable)
Wraps aCallable
so that it executes with thespan
as the currentSpan
.Scope
Tracer. withSpan(Span span)
Enters the scope of code where the givenSpan
is in the current Context, and returns an object that represents that scope.java.lang.Runnable
Tracer. withSpan(Span span, java.lang.Runnable runnable)
Returns aRunnable
that runs the given task with the givenSpan
in the current context.<C> java.util.concurrent.Callable<C>
Tracer. withSpan(Span span, java.util.concurrent.Callable<C> callable)
Returns aCallable
that runs the given task with the givenSpan
in the current context.ContextHandle
ContextManager. withValue(ContextHandle contextHandle, Span span)
Method parameters in io.opencensus.trace with type arguments of type Span Modifier and Type Method Description SpanBuilder
SpanBuilder.NoopSpanBuilder. setParentLinks(java.util.List<Span> parentLinks)
abstract SpanBuilder
SpanBuilder. setParentLinks(java.util.List<Span> parentLinks)
Sets theList
of parent links.abstract boolean
Sampler. shouldSample(SpanContext parentContext, java.lang.Boolean hasRemoteParent, TraceId traceId, SpanId spanId, java.lang.String name, java.util.List<Span> parentLinks)
Called duringSpan
creation to make a sampling decision.Constructors in io.opencensus.trace with parameters of type Span Constructor Description CallableInSpan(Span span, java.util.concurrent.Callable<V> callable, boolean endSpan)
RunnableInSpan(Span span, java.lang.Runnable runnable, boolean endSpan)
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 Span Modifier and Type Method Description boolean
AlwaysSampleSampler. shouldSample(SpanContext parentContext, java.lang.Boolean hasRemoteParent, TraceId traceId, SpanId spanId, java.lang.String name, java.util.List<Span> parentLinks)
boolean
NeverSampleSampler. shouldSample(SpanContext parentContext, java.lang.Boolean hasRemoteParent, TraceId traceId, SpanId spanId, java.lang.String name, java.util.List<Span> parentLinks)
boolean
ProbabilitySampler. shouldSample(SpanContext parentContext, java.lang.Boolean hasRemoteParent, TraceId traceId, SpanId spanId, java.lang.String name, java.util.List<Span> parentLinks)
-
Uses of Span in io.opencensus.trace.unsafe
Fields in io.opencensus.trace.unsafe with type parameters of type Span Modifier and Type Field Description private static io.grpc.Context.Key<Span>
ContextUtils. CONTEXT_SPAN_KEY
Deprecated.TheContext.Key
used to interact withContext
.Methods in io.opencensus.trace.unsafe that return Span Modifier and Type Method Description static Span
ContextHandleUtils. getValue(ContextHandle context)
Returns the value from the specifiedContextHandle
.Span
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 Span Modifier and Type Method Description static ContextHandle
ContextHandleUtils. withValue(ContextHandle context, Span span)
Creates a newContextHandle
with the given value set.ContextHandle
ContextManagerImpl. withValue(ContextHandle contextHandle, Span span)
static io.grpc.Context
ContextUtils. withValue(io.grpc.Context context, Span span)
Deprecated.Creates a newContext
with the given value set.
-