Struct observer::span::Span [−][src]
pub struct Span { pub id: String, pub items: Vec<(Duration, SpanItem)>, pub success: Option<bool>, pub result: Option<Value>, pub err: Option<String>, pub created_on: Instant, pub duration: Option<Duration>, // some fields omitted }
Fields
id: String
items: Vec<(Duration, SpanItem)>
success: Option<bool>
result: Option<Value>
err: Option<String>
created_on: Instant
duration: Option<Duration>
Implementations
impl Span
[src]
impl Span
[src]pub fn duration(&self) -> Duration
[src]
pub fn new(id: &str) -> Span
[src]
pub fn end(&mut self) -> &mut Self
[src]
pub fn set_result(&mut self, result: impl Serialize) -> &mut Self
[src]
pub fn set_success(&mut self, is_success: bool) -> &mut Self
[src]
pub fn set_err(&mut self, err: Option<String>) -> &mut Self
[src]
pub fn add_sub_frame(&mut self, created_on: Instant, frame: Span)
[src]
pub fn get_key(&self) -> String
[src]
pub fn add_log(&mut self, log: &'static str)
[src]
pub fn add_breadcrumbs(&mut self, name: &'static str, value: Value)
[src]
pub fn add_transient_field(&mut self, name: &'static str, value: Value)
[src]
pub fn add_query(
&mut self,
query: String,
bind: Option<String>,
result: Result<usize, String>
)
[src]
&mut self,
query: String,
bind: Option<String>,
result: Result<usize, String>
)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Span
impl RefUnwindSafe for Span
impl UnwindSafe for Span
impl UnwindSafe for Span
Blanket Implementations
impl<T> CloneAny for T where
T: Any + Clone,
impl<T> CloneAny for T where
T: Any + Clone,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,