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) RetrievesSpanfrom theHttpRequestContext.Methods in io.opencensus.contrib.http with parameters of type SpanModifier and TypeMethodDescription(package private) final voidAbstractHttpHandler.addSpanRequestAttributes(Span span, Q request, HttpExtractor<Q, P> extractor) (package private) HttpRequestContextAbstractHttpHandler.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 voidAbstractHttpHandler.putAttributeIfNotEmptyOrNull(Span span, String key, 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) voidConstructors 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 classImplementation for theSpanclass that does not record trace events.final classImplementation for theSpanclass 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 SpanSpanBuilderImpl.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 SpanBuilderImplSpanBuilderImpl.createWithParent(String spanName, Span parent, SpanBuilderImpl.Options options) private static voidTracerImpl.spanBuilderWithExplicitParent(String spanName, Span parent) private SpanSpanBuilderImpl.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 booleanSpanBuilderImpl.isAnyParentLinkSampled(List<Span> parentLinks) private static voidprivate static booleanSpanBuilderImpl.makeSamplingDecision(SpanContext parent, Boolean hasRemoteParent, String name, Sampler sampler, List<Span> parentLinks, TraceId traceId, SpanId spanId, TraceParams activeTraceParams) SpanBuilderImpl.setParentLinks(List<Span> parentLinks) private SpanSpanBuilderImpl.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 SpanModifierConstructorDescriptionprivateSpanBuilderImpl(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 classTheBlankSpanis a singleton class, which is the defaultSpanthat is used when noSpanimplementation is available.Fields in io.opencensus.trace declared as SpanModifier and TypeFieldDescriptionprivate final SpanCurrentSpanUtils.CallableInSpan.spanprivate final SpanCurrentSpanUtils.RunnableInSpan.spanprivate final SpanCurrentSpanUtils.ScopeInSpan.spanMethods in io.opencensus.trace that return SpanModifier and TypeMethodDescription(package private) static SpanCurrentSpanUtils.getCurrentSpan()Returns TheSpanfrom the current context.final SpanTracer.getCurrentSpan()Gets the current Span from the current Context.ContextManager.getValue(ContextHandle contextHandle) SpanBuilder.NoopSpanBuilder.startSpan()abstract SpanSpanBuilder.startSpan()Starts a newSpan.Methods in io.opencensus.trace with parameters of type SpanModifier and TypeMethodDescription(package private) static SpanBuilder.NoopSpanBuilderSpanBuilder.NoopSpanBuilder.createWithParent(String spanName, Span parent) private static voidCurrentSpanUtils.setErrorStatus(Span span, Throwable t) Tracer.NoopTracer.spanBuilderWithExplicitParent(String spanName, Span parent) abstract 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.(package private) static ScopeEnters the scope of code where the givenSpanis in the current context, and returns an object that represents that scope.(package private) static Runnable(package private) static <C> Callable<C> 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 TypeMethodDescriptionSpanBuilder.NoopSpanBuilder.setParentLinks(List<Span> parentLinks) abstract 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.Constructors in io.opencensus.trace with parameters of type SpanModifierConstructorDescriptionprivateCallableInSpan(Span span, Callable<V> callable, boolean endSpan) privateRunnableInSpan(Span span, Runnable runnable, boolean endSpan) privateScopeInSpan(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 TypeMethodDescriptionbooleanAlwaysSampleSampler.shouldSample(SpanContext parentContext, Boolean hasRemoteParent, TraceId traceId, SpanId spanId, String name, List<Span> parentLinks) booleanNeverSampleSampler.shouldSample(SpanContext parentContext, Boolean hasRemoteParent, TraceId traceId, SpanId spanId, String name, List<Span> parentLinks) final booleanProbabilitySampler.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_KEYDeprecated.TheContext.Keyused to interact withContext.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.