Skip to main content

record_error

Method
This is a method of the ApiStats class in the telemetry module.
Record a failed call.

Signature

def record_error(&mut self, duration: Duration, status_code: Option<u16>) -> ()

Parameters

duration
Duration
required
No description available.
status_code
Option<u16>
required
No description available.

Returns

Returns
()
The result of the operation.