pub struct ExternalSpan {
pub trace_id: String,
pub span_id: String,
pub parent_span_id: Option<String>,
pub name: String,
pub kind: Option<String>,
pub model: Option<String>,
pub started_at: String,
pub ended_at: String,
pub status: String,
pub attributes: Map<String, Value>,
pub input: Option<Value>,
pub output: Option<Value>,
}Expand description
A finished span produced by another tracer: an OpenTelemetry exporter or a framework callback. IDs, timing and parent links come from that tracer, so Bench rebuilds the agent/model/tool tree the framework actually executed. This is the framework-agnostic path to SDK-first discovery.
Fields§
§trace_id: String32 lowercase hex characters.
span_id: String16 lowercase hex characters.
parent_span_id: Option<String>§name: String§kind: Option<String>LLM | TOOL | CHAIN | RETRIEVER | AGENT | EMBEDDING; inferred from GenAI
attributes when None.
model: Option<String>§started_at: StringRFC 3339 timestamps from the original tracer.
ended_at: String§status: String“ok” (default) or “error”.
attributes: Map<String, Value>§input: Option<Value>§output: Option<Value>Trait Implementations§
Source§impl Clone for ExternalSpan
impl Clone for ExternalSpan
Auto Trait Implementations§
impl Freeze for ExternalSpan
impl RefUnwindSafe for ExternalSpan
impl Send for ExternalSpan
impl Sync for ExternalSpan
impl Unpin for ExternalSpan
impl UnsafeUnpin for ExternalSpan
impl UnwindSafe for ExternalSpan
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