pub struct SpanLog {
pub name: Option<String>,
pub input: Option<Value>,
pub output: Option<Value>,
pub metadata: Option<Map<String, Value>>,
pub metrics: Option<HashMap<String, f64>>,
}Expand description
Event data to log to a span. All fields are optional.
Multiple calls to log() will merge data.
Fields§
§name: Option<String>§input: Option<Value>§output: Option<Value>§metadata: Option<Map<String, Value>>§metrics: Option<HashMap<String, f64>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpanLog
impl RefUnwindSafe for SpanLog
impl Send for SpanLog
impl Sync for SpanLog
impl Unpin for SpanLog
impl UnsafeUnpin for SpanLog
impl UnwindSafe for SpanLog
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