Track API • Rust AI Agent SDK
track_api: Track an API call on the global monitor.
track_api
Function
</div>
This function is defined in the telemetry module.
Track an API call on the global monitor.
Signature
def track_api(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.
Uses
get_monitortrack_api
Source
View on GitHubpraisonai/src/telemetry/mod.rs at line 477