Class ServletHttpServerTracer<REQUEST,​RESPONSE>


  • @Deprecated
    public abstract class ServletHttpServerTracer<REQUEST,​RESPONSE>
    extends io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<REQUEST,​RESPONSE,​REQUEST,​REQUEST>
    Deprecated.
    • 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.
    • 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.
        Overrides:
        customizeContext in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<REQUEST,​RESPONSE,​REQUEST,​REQUEST>
      • 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.
        Overrides:
        endExceptionally in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<REQUEST,​RESPONSE,​REQUEST,​REQUEST>
      • getServerContext

        public io.opentelemetry.context.Context getServerContext​(REQUEST request)
        Deprecated.
        Specified by:
        getServerContext in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<REQUEST,​RESPONSE,​REQUEST,​REQUEST>
      • attachServerContext

        protected void attachServerContext​(io.opentelemetry.context.Context context,
                                           REQUEST request)
        Deprecated.
        Specified by:
        attachServerContext in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<REQUEST,​RESPONSE,​REQUEST,​REQUEST>
      • peerHostIp

        protected String peerHostIp​(REQUEST connection)
        Deprecated.
        Specified by:
        peerHostIp in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<REQUEST,​RESPONSE,​REQUEST,​REQUEST>
      • responseStatus

        protected int responseStatus​(RESPONSE response)
        Deprecated.
        Specified by:
        responseStatus in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<REQUEST,​RESPONSE,​REQUEST,​REQUEST>
      • getGetter

        protected abstract io.opentelemetry.context.propagation.TextMapGetter<REQUEST> getGetter()
        Deprecated.
        Specified by:
        getGetter in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<REQUEST,​RESPONSE,​REQUEST,​REQUEST>
      • setAsyncListenerResponse

        public void setAsyncListenerResponse​(REQUEST request,
                                             RESPONSE response)
        Deprecated.
        Response object must be attached to a request prior to attachAsyncListener(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:
        unwrapThrowable in class io.opentelemetry.instrumentation.api.tracer.BaseTracer
      • setPrincipal

        public void setPrincipal​(io.opentelemetry.context.Context context,
                                 REQUEST request)
        Deprecated.
      • requestHeader

        protected String requestHeader​(REQUEST httpServletRequest,
                                       String name)
        Deprecated.
        Specified by:
        requestHeader in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<REQUEST,​RESPONSE,​REQUEST,​REQUEST>
      • errorException

        public Throwable errorException​(REQUEST request)
        Deprecated.
      • errorExceptionAttributeName

        protected abstract String errorExceptionAttributeName()
        Deprecated.
      • getSpanName

        public String getSpanName​(REQUEST request)
        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.