Interface WebRequestTracer

    • Method Detail

      • getTag

        java.lang.String getTag()
        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.
        Returns:
        the Dynatrace tag to be set as HTTP header value or an empty String if capture is off
      • setBytesSent

        WebRequestTracer setBytesSent​(int bytesSent)
        Sets the amount of sent data of this web request. Has to be called before stop(int).
        Parameters:
        bytesSent - number of bytes
      • setBytesReceived

        WebRequestTracer setBytesReceived​(int bytesReceived)
        Sets the amount of received data of this web request. Has to be called before stop(int).
        Parameters:
        bytesReceived - number of bytes
      • start

        WebRequestTracer start()
        Starts the web request timing. Should be called when the web request is initiated.
      • stop

        void stop​(int responseCode)
        Stops the web request timing with the given response code. Should be called when the web request is finished.
        Parameters:
        responseCode - response code of this web request