SpanEvent
Defined in the trace module.Rust AI Agent SDK An event within a span.
Fields
| Name | Type | Description |
|---|---|---|
name | String | Event name |
timestamp | Duration | Timestamp (as duration since trace start) |
attributes | HashMap<String | Attributes |
serde_json | :Value> | Attributes |
Methods
new
| Name | Type |
|---|---|
name | impl Into<String> |
timestamp | Duration |
with_attribute
| Name | Type |
|---|---|
key | impl Into<String> |
value | impl Serialize |
Source
View on GitHub
praisonai/src/trace/mod.rs at line 175
