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

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

Parameters

ParamField Duration

No description available.

ParamField Option&lt;u16&gt;

No description available.

Returns

ResponseField ()

The result of the operation.


Related Documentation