EmbraceNetworkRequest

public final class EmbraceNetworkRequest

This class is used to create manually-recorded network requests.

Properties

Link copied to clipboard
public final Long bytesReceived
The number of bytes received.
Link copied to clipboard
public final Long bytesSent
The number of bytes sent.
Link copied to clipboard
public final Long endTime
The time the request ended.
Link copied to clipboard
public final Throwable error
Error object that describes a non-HTTP error, e.g.
Link copied to clipboard
public final String errorMessage
Error message that describes a non-HTTP error, e.g.
Link copied to clipboard
public final String errorType
Error type that describes a non-HTTP error, e.g.
Link copied to clipboard
public final NetworkCaptureData networkCaptureData
Network capture data for the request.
Link copied to clipboard
public final Integer responseCode
The response status of the request.
Link copied to clipboard
public final Long startTime
The time the request started.
Link copied to clipboard
public final String traceId
Optional trace ID that can be used to trace a particular request.
Link copied to clipboard
public final String url
The request's URL.
Link copied to clipboard
Optional W3C-compliant traceparent representing the network call that is being recorded

Functions

Link copied to clipboard
public static EmbraceNetworkRequest fromCompletedRequest(@NonNull() String url, @NonNull() HttpMethod httpMethod, long startTime, long endTime, long bytesSent, long bytesReceived, int statusCode)
public static EmbraceNetworkRequest fromCompletedRequest(@NonNull() String url, @NonNull() HttpMethod httpMethod, long startTime, long endTime, long bytesSent, long bytesReceived, int statusCode, @Nullable() String traceId)
public static EmbraceNetworkRequest fromCompletedRequest(@NonNull() String url, @NonNull() HttpMethod httpMethod, long startTime, long endTime, long bytesSent, long bytesReceived, int statusCode, @Nullable() String traceId, @Nullable() NetworkCaptureData networkCaptureData)
public static EmbraceNetworkRequest fromCompletedRequest(@NonNull() String url, @NonNull() HttpMethod httpMethod, long startTime, long endTime, long bytesSent, long bytesReceived, int statusCode, @Nullable() String traceId, @Nullable() String w3cTraceparent, @Nullable() NetworkCaptureData networkCaptureData)
Construct a new EmbraceNetworkRequest instance where a HTTP response was returned.
Link copied to clipboard
public static EmbraceNetworkRequest fromIncompleteRequest(@NonNull() String url, @NonNull() HttpMethod httpMethod, long startTime, long endTime, @NonNull() String errorType, @NonNull() String errorMessage)
public static EmbraceNetworkRequest fromIncompleteRequest(@NonNull() String url, @NonNull() HttpMethod httpMethod, long startTime, long endTime, @NonNull() String errorType, @NonNull() String errorMessage, @Nullable() String traceId)
public static EmbraceNetworkRequest fromIncompleteRequest(@NonNull() String url, @NonNull() HttpMethod httpMethod, long startTime, long endTime, @NonNull() String errorType, @NonNull() String errorMessage, @Nullable() String traceId, @Nullable() NetworkCaptureData networkCaptureData)
public static EmbraceNetworkRequest fromIncompleteRequest(@NonNull() String url, @NonNull() HttpMethod httpMethod, long startTime, long endTime, @NonNull() String errorType, @NonNull() String errorMessage, @Nullable() String traceId, @Nullable() String w3cTraceparent, @Nullable() NetworkCaptureData networkCaptureData)
Construct a new EmbraceNetworkRequest instance where a HTTP response was not returned.
Link copied to clipboard
public Long getBytesIn()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public Long getEndTime()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public NetworkCaptureData getNetworkCaptureData()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public String getUrl()
Link copied to clipboard