Class HttpClientTracer<REQUEST,CARRIER,RESPONSE>
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.tracer.BaseTracer
-
- io.opentelemetry.instrumentation.api.tracer.HttpClientTracer<REQUEST,CARRIER,RESPONSE>
-
public abstract class HttpClientTracer<REQUEST,CARRIER,RESPONSE> extends BaseTracer
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_SPAN_NAME-
Fields inherited from class io.opentelemetry.instrumentation.api.tracer.BaseTracer
CONTEXT_CLIENT_SPAN_KEY, CONTEXT_SERVER_SPAN_KEY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidend(io.opentelemetry.context.Context context)voidend(io.opentelemetry.context.Context context, RESPONSE response)voidend(io.opentelemetry.context.Context context, RESPONSE response, long endTimeNanos)voidendExceptionally(io.opentelemetry.context.Context context, Throwable throwable)voidendExceptionally(io.opentelemetry.context.Context context, RESPONSE response, Throwable throwable)voidendExceptionally(io.opentelemetry.context.Context context, RESPONSE response, Throwable throwable, long endTimeNanos)voidendMaybeExceptionally(io.opentelemetry.context.Context context, RESPONSE response, @Nullable Throwable throwable)booleanshouldStartSpan(io.opentelemetry.context.Context parentContext)io.opentelemetry.context.ContextstartSpan(io.opentelemetry.context.Context parentContext, REQUEST request, CARRIER carrier)io.opentelemetry.context.ContextstartSpan(io.opentelemetry.context.Context parentContext, REQUEST request, CARRIER carrier, long startTimeNanos)-
Methods inherited from class io.opentelemetry.instrumentation.api.tracer.BaseTracer
addThrowable, end, end, endExceptionally, endExceptionally, extract, getCurrentServerSpan, getCurrentServerSpan, getCurrentSpan, spanNameForClass, spanNameForMethod, startScope, startSpan, startSpan, startSpan
-
-
-
-
Field Detail
-
DEFAULT_SPAN_NAME
public static final String DEFAULT_SPAN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
shouldStartSpan
public boolean shouldStartSpan(io.opentelemetry.context.Context parentContext)
-
startSpan
public io.opentelemetry.context.Context startSpan(io.opentelemetry.context.Context parentContext, REQUEST request, CARRIER carrier)
-
startSpan
public io.opentelemetry.context.Context startSpan(io.opentelemetry.context.Context parentContext, REQUEST request, CARRIER carrier, long startTimeNanos)
-
end
public void end(io.opentelemetry.context.Context context, RESPONSE response)
-
end
public void end(io.opentelemetry.context.Context context, RESPONSE response, long endTimeNanos)
-
end
public void end(io.opentelemetry.context.Context context)
-
endExceptionally
public void endExceptionally(io.opentelemetry.context.Context context, RESPONSE response, Throwable throwable)
-
endExceptionally
public void endExceptionally(io.opentelemetry.context.Context context, RESPONSE response, Throwable throwable, long endTimeNanos)
-
endExceptionally
public void endExceptionally(io.opentelemetry.context.Context context, Throwable throwable)
-
-