logNetworkRequest abstract method
void
logNetworkRequest({})
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
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,
});