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 void
attachSpanToFuture(Span span, CompletionStage<?> future)
protected abstract Span
internalSpan(String path, String method, CompletionStage<?> future)
protected abstract Span
internalSpan(okhttp3.Request request, CompletionStage<?> future)
Span
span(String path, String method)
Span
span(String name, String method, CompletionStage<?> future)
Create scoped span.Span
span(okhttp3.Request request)
Span
span(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:Tracer
Create 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:
attachSpanToFuture
in interfaceTracer
-
-