Record Error • Rust AI Agent SDK
record_error: Record a failed call.
record_error
Method
</div>
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
ParamField
DurationNo description available.
ParamField
Option<u16>No description available.
Returns
ResponseField
()The result of the operation.