Package com.spotify.github.tracing
Class BaseTracer
- java.lang.Object
-
- com.spotify.github.tracing.BaseTracer
-
- All Implemented Interfaces:
Tracer
- Direct Known Subclasses:
OpenCensusTracer,OpenTelemetryTracer
public abstract class BaseTracer extends Object implements Tracer
-
-
Constructor Summary
Constructors Constructor Description BaseTracer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidattachSpanToFuture(Span span, CompletionStage<?> future)protected abstract SpaninternalSpan(String path, String method, CompletionStage<?> future)protected abstract SpaninternalSpan(okhttp3.Request request, CompletionStage<?> future)Spanspan(String path, String method)Spanspan(String name, String method, CompletionStage<?> future)Create scoped span.Spanspan(okhttp3.Request request)Spanspan(okhttp3.Request request, CompletionStage<?> future)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.spotify.github.tracing.Tracer
createTracedClient
-
-
-
-
Method Detail
-
span
public Span span(String name, String method, CompletionStage<?> future)
Description copied from interface:TracerCreate scoped span. Span will be closed when future completes.
-
span
public Span span(okhttp3.Request request, CompletionStage<?> future)
-
internalSpan
protected abstract Span internalSpan(String path, String method, CompletionStage<?> future)
-
internalSpan
protected abstract Span internalSpan(okhttp3.Request request, CompletionStage<?> future)
-
attachSpanToFuture
public void attachSpanToFuture(Span span, CompletionStage<?> future)
- Specified by:
attachSpanToFuturein interfaceTracer
-
-