Interface WebRequestTracer

This interface allows tracing and timing of a web request.

Hierarchy

  • WebRequestTracer

Methods

  • Returns the Dynatrace tag which has to be set manually as Dynatrace HTTP header (webRequestTagHeader).

    See

    webRequestTagHeader

    Returns

    the Dynatrace tag to be set as HTTP header value or an empty String if capture is off

    Returns string

  • Sets the amount of received data of this web request. Has to be called before stop.

    Parameters

    • bytesReceived: number

      number of bytes

    Returns WebRequestTracer

  • Sets the amount of sent data of this web request. Has to be called before stop.

    Parameters

    • bytesSent: number

      number of bytes

    Returns WebRequestTracer

  • Starts the web request timing. Should be called when the web request is initiated.

    Returns WebRequestTracer

  • Stops the web request timing. Should be called when the web request is finished.

    Parameters

    • responseCode: number

    Returns void

Generated using TypeDoc