Track Function • Rust AI Agent SDK

track_function: Track a function call on the global monitor.

track_function

Function

</div>

This function is defined in the telemetry module.

Track a function call on the global monitor.

Signature

python
def track_function(name: &str, duration: Duration) -> ()

Parameters

ParamField &str

No description available.

ParamField Duration

No description available.

Returns

ResponseField ()

The result of the operation.

Uses

  • get_monitor
  • track_function

Source

View on GitHub

praisonai/src/telemetry/mod.rs at line 472