Enum NullWebRequestTracer

    • Method Detail

      • values

        public static NullWebRequestTracer[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (NullWebRequestTracer c : NullWebRequestTracer.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NullWebRequestTracer valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • 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 respondeCode)
        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:
        respondeCode - 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