-
public final class EmbraceNetworkRequestThis class is used to create manually-recorded network requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEmbraceNetworkRequest.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Throwableerrorprivate final LongbytesInprivate final LongbytesOutprivate final Stringurlprivate final StringhttpMethodprivate final LongstartTimeprivate final LongendTimeprivate final LongbytesSentprivate final LongbytesReceivedprivate final IntegerresponseCodeprivate final StringerrorTypeprivate final StringerrorMessageprivate final StringtraceIdprivate final Stringw3cTraceparentprivate final NetworkCaptureDatanetworkCaptureData
-
Method Summary
Modifier and Type Method Description final ThrowablegetError()Error object that describes a non-HTTP error, e.g. final LonggetBytesIn()final LonggetBytesOut()final StringgetUrl()The request's URL. final StringgetHttpMethod()The request's method. final LonggetStartTime()The time the request started. final LonggetEndTime()The time the request ended. final LonggetBytesSent()The number of bytes sent. final LonggetBytesReceived()The number of bytes received. final IntegergetResponseCode()The response status of the request. final StringgetErrorType()Error type that describes a non-HTTP error, e.g. final StringgetErrorMessage()Error message that describes a non-HTTP error, e.g. final StringgetTraceId()Optional trace ID that can be used to trace a particular request. final StringgetW3cTraceparent()Optional W3C-compliant traceparent representing the network call that is being recorded final NetworkCaptureDatagetNetworkCaptureData()Network capture data for the request. -
-
Method Detail
-
getError
final Throwable getError()
Error object that describes a non-HTTP error, e.g. a connection error.
-
getBytesIn
final Long getBytesIn()
-
getBytesOut
final Long getBytesOut()
-
getHttpMethod
final String getHttpMethod()
The request's method. Must be one of the following: GET, PUT, POST, DELETE, PATCH.
-
getStartTime
final Long getStartTime()
The time the request started.
-
getEndTime
final Long getEndTime()
The time the request ended. Must be greater than the startTime.
-
getBytesSent
final Long getBytesSent()
The number of bytes sent.
-
getBytesReceived
final Long getBytesReceived()
The number of bytes received.
-
getResponseCode
final Integer getResponseCode()
The response status of the request. Must be in the range 100 to 599.
-
getErrorType
final String getErrorType()
Error type that describes a non-HTTP error, e.g. a connection error.
-
getErrorMessage
final String getErrorMessage()
Error message that describes a non-HTTP error, e.g. a connection error.
-
getTraceId
final String getTraceId()
Optional trace ID that can be used to trace a particular request. Max length is 64 characters.
-
getW3cTraceparent
final String getW3cTraceparent()
Optional W3C-compliant traceparent representing the network call that is being recorded
-
getNetworkCaptureData
final NetworkCaptureData getNetworkCaptureData()
Network capture data for the request.
-
-
-
-