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) SpanHttpRequestContext. spanMethods in io.opencensus.contrib.http that return Span Modifier and Type Method Description SpanAbstractHttpHandler. getSpanFromContext(HttpRequestContext context)RetrievesSpanfrom theHttpRequestContext.Methods in io.opencensus.contrib.http with parameters of type Span Modifier and Type Method Description (package private) voidAbstractHttpHandler. addSpanRequestAttributes(Span span, Q request, HttpExtractor<Q,P> extractor)(package private) HttpRequestContextAbstractHttpHandler. getNewContext(Span span, TagContext tagContext)HttpRequestContextHttpClientHandler. handleStart(Span parent, C carrier, Q request)Instrument a request for tracing and stats before it is sent.private static voidAbstractHttpHandler. putAttributeIfNotEmptyOrNull(Span span, java.lang.String key, java.lang.String value)(package private) static voidAbstractHttpHandler. recordMessageEvent(Span span, long id, MessageEvent.Type type, long uncompressedMessageSize, long compressedMessageSize)A convenience to record aMessageEventwith given parameters.(package private) voidAbstractHttpHandler. 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 SpanHttpRequestListener. parentConstructors 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) classNoRecordEventsSpanImplImplementation for theSpanclass that does not record trace events.classRecordEventsSpanImplImplementation for theSpanclass that records trace events.Fields in io.opencensus.implcore.trace declared as Span Modifier and Type Field Description private SpanSpanBuilderImpl. parentFields in io.opencensus.implcore.trace with type parameters of type Span Modifier and Type Field Description private java.util.List<Span>SpanBuilderImpl. parentLinksMethods in io.opencensus.implcore.trace that return Span Modifier and Type Method Description SpanSpanBuilderImpl. startSpan()private SpanSpanBuilderImpl. 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 SpanBuilderImplSpanBuilderImpl. createWithParent(java.lang.String spanName, Span parent, SpanBuilderImpl.Options options)private static voidSpanBuilderImpl. linkSpans(Span span, java.util.List<Span> parentLinks)SpanBuilderTracerImpl. spanBuilderWithExplicitParent(java.lang.String spanName, Span parent)private SpanSpanBuilderImpl. 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 booleanSpanBuilderImpl. isAnyParentLinkSampled(java.util.List<Span> parentLinks)private static voidSpanBuilderImpl. linkSpans(Span span, java.util.List<Span> parentLinks)private static booleanSpanBuilderImpl. makeSamplingDecision(SpanContext parent, java.lang.Boolean hasRemoteParent, java.lang.String name, Sampler sampler, java.util.List<Span> parentLinks, TraceId traceId, SpanId spanId, TraceParams activeTraceParams)SpanBuilderImplSpanBuilderImpl. setParentLinks(java.util.List<Span> parentLinks)private SpanSpanBuilderImpl. 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 classBlankSpanTheBlankSpanis a singleton class, which is the defaultSpanthat is used when noSpanimplementation is available.Fields in io.opencensus.trace declared as Span Modifier and Type Field Description private SpanCurrentSpanUtils.CallableInSpan. spanprivate SpanCurrentSpanUtils.RunnableInSpan. spanprivate SpanCurrentSpanUtils.ScopeInSpan. spanMethods in io.opencensus.trace that return Span Modifier and Type Method Description (package private) static SpanCurrentSpanUtils. getCurrentSpan()Returns TheSpanfrom the current context.SpanTracer. getCurrentSpan()Gets the current Span from the current Context.SpanContextManager. getValue(ContextHandle contextHandle)SpanSpanBuilder.NoopSpanBuilder. startSpan()abstract SpanSpanBuilder. startSpan()Starts a newSpan.Methods in io.opencensus.trace with parameters of type Span Modifier and Type Method Description (package private) static SpanBuilder.NoopSpanBuilderSpanBuilder.NoopSpanBuilder. createWithParent(java.lang.String spanName, Span parent)private static voidCurrentSpanUtils. setErrorStatus(Span span, java.lang.Throwable t)SpanBuilderTracer.NoopTracer. spanBuilderWithExplicitParent(java.lang.String spanName, Span parent)abstract SpanBuilderTracer. spanBuilderWithExplicitParent(java.lang.String spanName, Span parent)Returns aSpanBuilderto create and start a new childSpan(or root if parent isnullor has an invalidSpanContext), with parent being the designatedSpan.(package private) static ScopeCurrentSpanUtils. withSpan(Span span, boolean endSpan)Enters the scope of code where the givenSpanis in the current context, and returns an object that represents that scope.(package private) static java.lang.RunnableCurrentSpanUtils. withSpan(Span span, boolean endSpan, java.lang.Runnable runnable)Wraps aRunnableso that it executes with thespanas the currentSpan.(package private) static <C> java.util.concurrent.Callable<C>CurrentSpanUtils. withSpan(Span span, boolean endSpan, java.util.concurrent.Callable<C> callable)Wraps aCallableso that it executes with thespanas the currentSpan.ScopeTracer. withSpan(Span span)Enters the scope of code where the givenSpanis in the current Context, and returns an object that represents that scope.java.lang.RunnableTracer. withSpan(Span span, java.lang.Runnable runnable)Returns aRunnablethat runs the given task with the givenSpanin the current context.<C> java.util.concurrent.Callable<C>Tracer. withSpan(Span span, java.util.concurrent.Callable<C> callable)Returns aCallablethat runs the given task with the givenSpanin the current context.ContextHandleContextManager. withValue(ContextHandle contextHandle, Span span)Method parameters in io.opencensus.trace with type arguments of type Span Modifier and Type Method Description SpanBuilderSpanBuilder.NoopSpanBuilder. setParentLinks(java.util.List<Span> parentLinks)abstract SpanBuilderSpanBuilder. setParentLinks(java.util.List<Span> parentLinks)Sets theListof parent links.abstract booleanSampler. shouldSample(SpanContext parentContext, java.lang.Boolean hasRemoteParent, TraceId traceId, SpanId spanId, java.lang.String name, java.util.List<Span> parentLinks)Called duringSpancreation 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 booleanAlwaysSampleSampler. shouldSample(SpanContext parentContext, java.lang.Boolean hasRemoteParent, TraceId traceId, SpanId spanId, java.lang.String name, java.util.List<Span> parentLinks)booleanNeverSampleSampler. shouldSample(SpanContext parentContext, java.lang.Boolean hasRemoteParent, TraceId traceId, SpanId spanId, java.lang.String name, java.util.List<Span> parentLinks)booleanProbabilitySampler. 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_KEYDeprecated.TheContext.Keyused to interact withContext.Methods in io.opencensus.trace.unsafe that return Span Modifier and Type Method Description static SpanContextHandleUtils. getValue(ContextHandle context)Returns the value from the specifiedContextHandle.SpanContextManagerImpl. getValue(ContextHandle contextHandle)static SpanContextUtils. 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 ContextHandleContextHandleUtils. withValue(ContextHandle context, Span span)Creates a newContextHandlewith the given value set.ContextHandleContextManagerImpl. withValue(ContextHandle contextHandle, Span span)static io.grpc.ContextContextUtils. withValue(io.grpc.Context context, Span span)Deprecated.Creates a newContextwith the given value set.
-