logNetworkRequest abstract method
- @Deprecated('Use recordNetworkRequest() instead. This API will be removed ' 'in a future major version release.')
Log a network request.
Use the error
parameter to pass the reason phrase or exception message
for requests that are not successful.
startTime
and endTime
should be Unix timestamps, or the
number of milliseconds since 1970-01-01T00:00:00Z (UTC),
e.g. DateTime.now.millisecondsSinceEpoch
.
Implementation
@Deprecated(
'Use recordNetworkRequest() instead. This API will be removed '
'in a future major version release.',
)
void logNetworkRequest({
required String url,
required HttpMethod method,
required int startTime,
required int endTime,
required int bytesSent,
required int bytesReceived,
required int statusCode,
String? error,
String? traceId,
});