Package 

Object EmbraceNetworkRequest.Companion

    • Method Detail

      • fromCompletedRequest

        @JvmOverloads() final EmbraceNetworkRequest fromCompletedRequest(String url, HttpMethod httpMethod, Long startTime, Long endTime, Long bytesSent, Long bytesReceived, Integer statusCode, String traceId, String w3cTraceparent, NetworkCaptureData networkCaptureData)

        Construct a new EmbraceNetworkRequest instance where a HTTP response was returned. If no response was returned, use .fromIncompleteRequest instead.

        Parameters:
        url - the URL of the request.
        httpMethod - the HTTP method of the request.
        startTime - the start time of the request.
        endTime - the end time of the request.
        bytesSent - the number of bytes sent.
        bytesReceived - the number of bytes received.
        statusCode - the status code of the response.
        traceId - the trace ID of the request, used for distributed tracing.
      • fromCompletedRequest

        @JvmOverloads() final EmbraceNetworkRequest fromCompletedRequest(String url, HttpMethod httpMethod, Long startTime, Long endTime, Long bytesSent, Long bytesReceived, Integer statusCode, String traceId, String w3cTraceparent)

        Construct a new EmbraceNetworkRequest instance where a HTTP response was returned. If no response was returned, use .fromIncompleteRequest instead.

        Parameters:
        url - the URL of the request.
        httpMethod - the HTTP method of the request.
        startTime - the start time of the request.
        endTime - the end time of the request.
        bytesSent - the number of bytes sent.
        bytesReceived - the number of bytes received.
        statusCode - the status code of the response.
        traceId - the trace ID of the request, used for distributed tracing.
      • fromCompletedRequest

        @JvmOverloads() final EmbraceNetworkRequest fromCompletedRequest(String url, HttpMethod httpMethod, Long startTime, Long endTime, Long bytesSent, Long bytesReceived, Integer statusCode, String traceId)

        Construct a new EmbraceNetworkRequest instance where a HTTP response was returned. If no response was returned, use .fromIncompleteRequest instead.

        Parameters:
        url - the URL of the request.
        httpMethod - the HTTP method of the request.
        startTime - the start time of the request.
        endTime - the end time of the request.
        bytesSent - the number of bytes sent.
        bytesReceived - the number of bytes received.
        statusCode - the status code of the response.
        traceId - the trace ID of the request, used for distributed tracing.
      • fromCompletedRequest

        @JvmOverloads() final EmbraceNetworkRequest fromCompletedRequest(String url, HttpMethod httpMethod, Long startTime, Long endTime, Long bytesSent, Long bytesReceived, Integer statusCode)

        Construct a new EmbraceNetworkRequest instance where a HTTP response was returned. If no response was returned, use .fromIncompleteRequest instead.

        Parameters:
        url - the URL of the request.
        httpMethod - the HTTP method of the request.
        startTime - the start time of the request.
        endTime - the end time of the request.
        bytesSent - the number of bytes sent.
        bytesReceived - the number of bytes received.
        statusCode - the status code of the response.
      • fromIncompleteRequest

        @JvmOverloads() final EmbraceNetworkRequest fromIncompleteRequest(String url, HttpMethod httpMethod, Long startTime, Long endTime, String errorType, String errorMessage, String traceId, String w3cTraceparent)

        Construct a new EmbraceNetworkRequest instance where a HTTP response was not returned. If a response was returned, use .fromCompletedRequest instead.

        Parameters:
        url - the URL of the request.
        httpMethod - the HTTP method of the request.
        startTime - the start time of the request.
        endTime - the end time of the request.
        errorType - the error type that occurred.
        errorMessage - the error message
      • fromIncompleteRequest

        @JvmOverloads() final EmbraceNetworkRequest fromIncompleteRequest(String url, HttpMethod httpMethod, Long startTime, Long endTime, String errorType, String errorMessage, String traceId)

        Construct a new EmbraceNetworkRequest instance where a HTTP response was not returned. If a response was returned, use .fromCompletedRequest instead.

        Parameters:
        url - the URL of the request.
        httpMethod - the HTTP method of the request.
        startTime - the start time of the request.
        endTime - the end time of the request.
        errorType - the error type that occurred.
        errorMessage - the error message
      • fromIncompleteRequest

        @JvmOverloads() final EmbraceNetworkRequest fromIncompleteRequest(String url, HttpMethod httpMethod, Long startTime, Long endTime, String errorType, String errorMessage)

        Construct a new EmbraceNetworkRequest instance where a HTTP response was not returned. If a response was returned, use .fromCompletedRequest instead.

        Parameters:
        url - the URL of the request.
        httpMethod - the HTTP method of the request.
        startTime - the start time of the request.
        endTime - the end time of the request.
        errorType - the error type that occurred.
        errorMessage - the error message