fromIncompleteRequest

open fun fromIncompleteRequest(@NonNull url: String, @NonNull httpMethod: HttpMethod, startTime: Long, endTime: Long, @NonNull errorType: String, @NonNull errorMessage: String): EmbraceNetworkRequest

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

Return

a new EmbraceNetworkRequest instance.

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


open fun fromIncompleteRequest(@NonNull url: String, @NonNull httpMethod: HttpMethod, startTime: Long, endTime: Long, @NonNull errorType: String, @NonNull errorMessage: String, @Nullable traceId: String): EmbraceNetworkRequest

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

Return

a new EmbraceNetworkRequest instance.

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

traceId

the trace ID of the request, used for distributed tracing.


open fun fromIncompleteRequest(@NonNull url: String, @NonNull httpMethod: HttpMethod, startTime: Long, endTime: Long, @NonNull errorType: String, @NonNull errorMessage: String, @Nullable traceId: String, @Nullable networkCaptureData: NetworkCaptureData): EmbraceNetworkRequest

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

Return

a new EmbraceNetworkRequest instance.

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

traceId

the trace ID of the request, used for distributed tracing.

networkCaptureData

the network capture data for the request.


open fun fromIncompleteRequest(@NonNull url: String, @NonNull httpMethod: HttpMethod, startTime: Long, endTime: Long, @NonNull errorType: String, @NonNull errorMessage: String, @Nullable traceId: String, @Nullable w3cTraceparent: String, @Nullable networkCaptureData: NetworkCaptureData): EmbraceNetworkRequest

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

Return

a new EmbraceNetworkRequest instance.

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

traceId

the trace ID of the request, used for distributed tracing.

w3cTraceparent

W3C-compliant traceparent representing the network call that is being recorded

networkCaptureData

the network capture data for the request.