Record Success • Rust AI Agent SDK
record_success: Record a successful call.
record_success
Method
</div>
This is a method of the ApiStats class in the telemetry module.
Record a successful call.
Signature
def record_success(&mut self, duration: Duration, status_code: u16) -> ()Parameters
ParamField
DurationNo description available.
ParamField
u16No description available.
Returns
ResponseField
()The result of the operation.