TelemetryEvent
Defined in the telemetry module.Rust AI Agent SDK A telemetry event.
Fields
| Name | Type | Description |
|---|---|---|
event_type | TelemetryEventType | Event type |
timestamp | chrono::DateTime<chrono::Utc> | Timestamp |
data | HashMap<String | Event data |
serde_json | :Value> | Event data |
duration | Option<Duration> | Duration (if applicable) |
Methods
new
| Name | Type |
|---|---|
event_type | TelemetryEventType |
with_data
| Name | Type |
|---|---|
key | impl Into<String> |
value | impl Serialize |
with_duration
| Name | Type |
|---|---|
duration | Duration |
Source
View on GitHub
praisonai/src/telemetry/mod.rs at line 337
