logNetworkCall

public void logNetworkCall(    @NonNull() String url,     @NonNull() HttpMethod httpMethod,     int statusCode,     long startTime,     long endTime,     long bytesSent,     long bytesReceived)

Logs the fact that a network call occurred. These are recorded and sent to Embrace as part of a particular session.

Parameters

url

the URL of the network call

httpMethod

the HTTP method of the network call

statusCode

the status code returned by the server

startTime

the time that the network call started

endTime

the time that the network call was completed

bytesSent

the number of bytes sent as part of the network call

bytesReceived

the number of bytes returned by the server in response to the network call


public void logNetworkCall(    @NonNull() String url,     @NonNull() HttpMethod httpMethod,     int statusCode,     long startTime,     long endTime,     long bytesSent,     long bytesReceived,     @Nullable() String traceId)

Logs the fact that a network call occurred. These are recorded and sent to Embrace as part of a particular session.

Parameters

url

the URL of the network call

httpMethod

the HTTP method of the network call

statusCode

the status code returned by the server

startTime

the time that the network call started

endTime

the time that the network call was completed

bytesSent

the number of bytes sent as part of the network call

bytesReceived

the number of bytes returned by the server in response to the network call

traceId

the optional trace id that can be used to trace a particular request


public void logNetworkCall(    @NonNull() String url,     @NonNull() HttpMethod httpMethod,     int statusCode,     long startTime,     long endTime,     long bytesSent,     long bytesReceived,     @Nullable() String traceId,     @Nullable() NetworkCaptureData networkCaptureData)

Logs the fact that a network call occurred. These are recorded and sent to Embrace as part of a particular session.

Parameters

url

the URL of the network call

httpMethod

the HTTP method of the network call

statusCode

the status code returned by the server

startTime

the time that the network call started

endTime

the time that the network call was completed

bytesSent

the number of bytes sent as part of the network call

bytesReceived

the number of bytes returned by the server in response to the network call

traceId

the optional trace id that can be used to trace a particular request

networkCaptureData

the additional data captured if network body capture is enabled for the URL