fromIncompleteRequest

fun fromIncompleteRequest(url: String, httpMethod: HttpMethod, startTime: Long, endTime: Long, errorType: String, errorMessage: String, traceId: String? = null, w3cTraceparent: String? = null, networkCaptureData: NetworkCaptureData? = null): EmbraceNetworkRequest(source)

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

the W3C-compliant traceparent of the network call.

networkCaptureData

network capture data for the request.