pub struct Span {
pub id: String,
pub conversation_id: String,
pub kind: String,
pub name: String,
pub args_hash: Option<String>,
pub started_at: i64,
pub ended_at: Option<i64>,
pub error: Option<String>,
pub session_id: Option<String>,
pub seq: i64,
}Expand description
A single ordered span within a run.
Fields§
§id: StringStable row id (UUID).
conversation_id: StringThe run this span belongs to (conversation_id from the chat request).
kind: String"tool-call" or "model-call".
name: StringTool name (tool-call) or model id (model-call).
args_hash: Option<String>SHA-256 hex of the raw tool-input JSON (tool-call only). Never the raw payload — protects sensitive args from being stored in Core.
started_at: i64Unix milliseconds — when the span was opened.
ended_at: Option<i64>Unix milliseconds — when the span was closed. None while in-flight.
error: Option<String>Error message if the span ended with a failure.
session_id: Option<String>Nullable link to the gateway audit row via x-ryu-session (populated
by #176; None until that thread lands).
seq: i64Autoincrement ordering key (monotonically increasing within the DB).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Span
impl<'de> Deserialize<'de> for Span
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnsafeUnpin for Span
impl UnwindSafe for Span
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more