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
Methods in io.opencensus.contrib.http with parameters of type SpanModifier and TypeMethodDescriptionHttpClientHandler.handleStart(Span parent, C carrier, Q request) Instrument a request for tracing and stats before it is sent. -
Uses of Span in io.opencensus.implcore.trace
Subclasses of Span in io.opencensus.implcore.traceModifier and TypeClassDescriptionfinal classImplementation for theSpanclass that records trace events.Methods in io.opencensus.implcore.trace with parameters of type SpanModifier and TypeMethodDescriptionTracerImpl.spanBuilderWithExplicitParent(String spanName, Span parent) -
Uses of Span in io.opencensus.trace
Subclasses of Span in io.opencensus.traceModifier and TypeClassDescriptionfinal classTheBlankSpanis a singleton class, which is the defaultSpanthat is used when noSpanimplementation is available.Methods in io.opencensus.trace that return SpanModifier and TypeMethodDescriptionfinal SpanTracer.getCurrentSpan()Gets the current Span from the current Context.ContextManager.getValue(ContextHandle contextHandle) abstract SpanSpanBuilder.startSpan()Starts a newSpan.Methods in io.opencensus.trace with parameters of type SpanModifier and TypeMethodDescriptionabstract SpanBuilderTracer.spanBuilderWithExplicitParent(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.final ScopeEnters the scope of code where the givenSpanis in the current Context, and returns an object that represents that scope.final RunnableReturns aRunnablethat runs the given task with the givenSpanin the current context.final <C> Callable<C> Returns aCallablethat runs the given task with the givenSpanin the current context.ContextManager.withValue(ContextHandle contextHandle, Span span) Method parameters in io.opencensus.trace with type arguments of type SpanModifier and TypeMethodDescriptionabstract SpanBuilderSpanBuilder.setParentLinks(List<Span> parentLinks) Sets theListof parent links.abstract booleanSampler.shouldSample(SpanContext parentContext, Boolean hasRemoteParent, TraceId traceId, SpanId spanId, String name, List<Span> parentLinks) Called duringSpancreation to make a sampling decision. -
Uses of Span in io.opencensus.trace.unsafe
Methods in io.opencensus.trace.unsafe that return SpanModifier and TypeMethodDescriptionstatic SpanContextHandleUtils.getValue(ContextHandle context) Returns the value from the specifiedContextHandle.ContextManagerImpl.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 SpanModifier and TypeMethodDescriptionstatic ContextHandleContextHandleUtils.withValue(ContextHandle context, Span span) Creates a newContextHandlewith the given value set.ContextManagerImpl.withValue(ContextHandle contextHandle, Span span) static io.grpc.ContextDeprecated.Creates a newContextwith the given value set.