Class WebRequestTracerBaseImpl

    • Method Detail

      • getTag

        public java.lang.String getTag()
        Description copied from interface: WebRequestTracer
        Returns the Dynatrace tag which has to be set manually as Dynatrace HTTP header (OpenKitConstants.WEBREQUEST_TAG_HEADER).
        This is only necessary for tracing web requests via 3rd party HTTP clients.
        Specified by:
        getTag in interface WebRequestTracer
        Returns:
        the Dynatrace tag to be set as HTTP header value or an empty String if capture is off
      • stop

        public void stop​(int responseCode)
        Description copied from interface: WebRequestTracer
        Stops the web request timing with the given response code. Should be called when the web request is finished.
        Specified by:
        stop in interface WebRequestTracer
        Parameters:
        responseCode - response code of this web request
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • getURL

        public java.lang.String getURL()
      • getResponseCode

        public int getResponseCode()
      • getStartTime

        public long getStartTime()
      • getEndTime

        public long getEndTime()
      • getStartSequenceNo

        public int getStartSequenceNo()
      • getEndSequenceNo

        public int getEndSequenceNo()
      • getBytesSent

        public long getBytesSent()
      • getBytesReceived

        public long getBytesReceived()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object