pub struct SpanFields {
pub component_ref: String,
pub digest: String,
pub tool: String,
pub args_sha256: String,
pub args_json: Option<String>,
pub session_id: Option<String>,
pub transport: String,
pub outcome: String,
pub duration_ms: u64,
pub request_id: String,
}Expand description
The envelope-span fields the layer captures at span open and completes at span close.
Fields§
§component_ref: String§digest: String§tool: String§args_sha256: String§args_json: Option<String>Full arguments, present only when --audit-args was set for this run.
render_rollup shows this instead of the digest when present — the
digest is still captured above, just not the thing printed.
session_id: Option<String>§transport: String§outcome: StringDefaults to "incomplete", never empty: a span that closes without
finish_tool_call ever recording an outcome (dropped early, never
entered) must not render as if the call had actually completed.
duration_ms: u64§request_id: Stringstd:request-id, or a host-generated id. Rendered truncated and
escaped — it is the only way an operator can join one audit line
back to a client log line.
Trait Implementations§
Source§impl Clone for SpanFields
impl Clone for SpanFields
Source§fn clone(&self) -> SpanFields
fn clone(&self) -> SpanFields
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpanFields
impl Debug for SpanFields
Auto Trait Implementations§
impl Freeze for SpanFields
impl RefUnwindSafe for SpanFields
impl Send for SpanFields
impl Sync for SpanFields
impl Unpin for SpanFields
impl UnsafeUnpin for SpanFields
impl UnwindSafe for SpanFields
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.