datadog-ux-utils Documentation - v1.0.0
    Preparing search index...

    Function withResponseSizeCheck

    • Checks the response size and adds a Datadog RUM action if the payload is large.

      Parameters

      • resp: Response

        The fetch response to check.

      • OptionalhintUrl: string

        Optional URL for context in the RUM action.

      Returns Promise<Response>

      The original response.