FunctionStats
Defined in the telemetry module.Rust AI Agent SDK Statistics for a tracked function.
Fields
| Name | Type | Description |
|---|---|---|
name | String | Function name |
call_count | usize | Number of calls |
total_duration | Duration | Total duration |
min_duration | Duration | Minimum duration |
max_duration | Duration | Maximum duration |
last_duration | Duration | Last call duration |
Methods
new
| Name | Type |
|---|---|
name | impl Into<String> |
record
| Name | Type |
|---|---|
duration | Duration |
average_duration
calls_per_second
| Name | Type |
|---|---|
elapsed | Duration |
Source
View on GitHub
praisonai/src/telemetry/mod.rs at line 26
