Track API • Rust AI Agent SDK
track_api: Track an API call.
track_api
Method
</div>
This is a method of the PerformanceMonitor class in the telemetry module.
Track an API call.
Signature
def track_api(&self, endpoint: &str, duration: Duration, success: bool, status_code: Option<u16>) -> ()Parameters
ParamField
&strNo description available.
ParamField
DurationNo description available.
ParamField
boolNo description available.
ParamField
Option<u16>No description available.
Returns
ResponseField
()The result of the operation.