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

python
def track_api(&self, endpoint: &str, duration: Duration, success: bool, status_code: Option<u16>) -> ()

Parameters

ParamField &str

No description available.

ParamField Duration

No description available.

ParamField bool

No description available.

ParamField Option&lt;u16&gt;

No description available.

Returns

ResponseField ()

The result of the operation.


Related Documentation