Class ServletHttpServerTracer<REQUEST,RESPONSE>
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.tracer.BaseTracer
-
- io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<REQUEST,RESPONSE,REQUEST,REQUEST>
-
- io.opentelemetry.instrumentation.servlet.ServletHttpServerTracer<REQUEST,RESPONSE>
-
@Deprecated public abstract class ServletHttpServerTracer<REQUEST,RESPONSE> extends io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<REQUEST,RESPONSE,REQUEST,REQUEST>
Deprecated.
-
-
Field Summary
Fields Modifier and Type Field Description static StringASYNC_LISTENER_ATTRIBUTEDeprecated.static StringASYNC_LISTENER_RESPONSE_ATTRIBUTEDeprecated.static booleanCAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTESDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protectedServletHttpServerTracer(ServletAccessor<REQUEST,RESPONSE> accessor)Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected io.opentelemetry.context.ContextaddServletContextPath(io.opentelemetry.context.Context context, REQUEST request)Deprecated.voidaddUnwrappedThrowable(io.opentelemetry.context.Context context, Throwable throwable)Deprecated.voidattachAsyncListener(REQUEST request)Deprecated.protected voidattachServerContext(io.opentelemetry.context.Context context, REQUEST request)Deprecated.protected io.opentelemetry.context.ContextcustomizeContext(io.opentelemetry.context.Context context, REQUEST request)Deprecated.voidendExceptionally(io.opentelemetry.context.Context context, Throwable throwable, RESPONSE response, long timestamp)Deprecated.ThrowableerrorException(REQUEST request)Deprecated.protected abstract StringerrorExceptionAttributeName()Deprecated.protected Stringflavor(REQUEST connection, REQUEST request)Deprecated.protected abstract io.opentelemetry.context.propagation.TextMapGetter<REQUEST>getGetter()Deprecated.io.opentelemetry.context.ContextgetServerContext(REQUEST request)Deprecated.StringgetSpanName(REQUEST request)Deprecated.booleanisAsyncListenerAttached(REQUEST request)Deprecated.protected Stringmethod(REQUEST request)Deprecated.booleanneedsRescoping(io.opentelemetry.context.Context currentContext, io.opentelemetry.context.Context attachedContext)Deprecated.voidonTimeout(io.opentelemetry.context.Context context, long timeout)Deprecated.protected StringpeerHostIp(REQUEST connection)Deprecated.protected IntegerpeerPort(REQUEST connection)Deprecated.protected StringrequestHeader(REQUEST httpServletRequest, String name)Deprecated.protected intresponseStatus(RESPONSE response)Deprecated.voidsetAsyncListenerResponse(REQUEST request, RESPONSE response)Deprecated.Response object must be attached to a request prior toattachAsyncListener(Object)being called, as otherwise in some environments it is not possible to access response from async event in listeners.voidsetPrincipal(io.opentelemetry.context.Context context, REQUEST request)Deprecated.io.opentelemetry.context.ContextstartSpan(REQUEST request, String spanName, boolean servlet)Deprecated.protected ThrowableunwrapThrowable(Throwable throwable)Deprecated.protected Stringurl(REQUEST httpServletRequest)Deprecated.-
Methods inherited from class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer
end, end, endExceptionally, endExceptionally, getServerSpan, isRelativeUrl, onConnection, onConnectionAndRequest, onRequest, startSpan, startSpan, startSpan
-
-
-
-
Field Detail
-
ASYNC_LISTENER_ATTRIBUTE
public static final String ASYNC_LISTENER_ATTRIBUTE
Deprecated.
-
ASYNC_LISTENER_RESPONSE_ATTRIBUTE
public static final String ASYNC_LISTENER_RESPONSE_ATTRIBUTE
Deprecated.
-
CAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTES
public static final boolean CAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTES
Deprecated.
-
-
Constructor Detail
-
ServletHttpServerTracer
protected ServletHttpServerTracer(ServletAccessor<REQUEST,RESPONSE> accessor)
Deprecated.
-
-
Method Detail
-
startSpan
public io.opentelemetry.context.Context startSpan(REQUEST request, String spanName, boolean servlet)
Deprecated.
-
customizeContext
protected io.opentelemetry.context.Context customizeContext(io.opentelemetry.context.Context context, REQUEST request)Deprecated.
-
addServletContextPath
protected io.opentelemetry.context.Context addServletContextPath(io.opentelemetry.context.Context context, REQUEST request)Deprecated.
-
endExceptionally
public void endExceptionally(io.opentelemetry.context.Context context, Throwable throwable, RESPONSE response, long timestamp)Deprecated.
-
getServerContext
public io.opentelemetry.context.Context getServerContext(REQUEST request)
Deprecated.
-
attachServerContext
protected void attachServerContext(io.opentelemetry.context.Context context, REQUEST request)Deprecated.
-
responseStatus
protected int responseStatus(RESPONSE response)
Deprecated.
-
getGetter
protected abstract io.opentelemetry.context.propagation.TextMapGetter<REQUEST> getGetter()
Deprecated.
-
setAsyncListenerResponse
public void setAsyncListenerResponse(REQUEST request, RESPONSE response)
Deprecated.Response object must be attached to a request prior toattachAsyncListener(Object)being called, as otherwise in some environments it is not possible to access response from async event in listeners.
-
attachAsyncListener
public void attachAsyncListener(REQUEST request)
Deprecated.
-
isAsyncListenerAttached
public boolean isAsyncListenerAttached(REQUEST request)
Deprecated.
-
addUnwrappedThrowable
public void addUnwrappedThrowable(io.opentelemetry.context.Context context, Throwable throwable)Deprecated.
-
unwrapThrowable
protected Throwable unwrapThrowable(Throwable throwable)
Deprecated.- Overrides:
unwrapThrowablein classio.opentelemetry.instrumentation.api.tracer.BaseTracer
-
setPrincipal
public void setPrincipal(io.opentelemetry.context.Context context, REQUEST request)Deprecated.
-
errorExceptionAttributeName
protected abstract String errorExceptionAttributeName()
Deprecated.
-
onTimeout
public void onTimeout(io.opentelemetry.context.Context context, long timeout)Deprecated.
-
needsRescoping
public boolean needsRescoping(io.opentelemetry.context.Context currentContext, io.opentelemetry.context.Context attachedContext)Deprecated.
-
-