[−][src]Struct holochain_tracing::HSpanContext
An OpenTracing SpanContext is used to send span info across a process boundary. This is a simple wrapper around that, again with some helper functions.
Methods
impl HSpanContext
[src]
pub fn follower<S: Into<Cow<'static, str>>>(
&self,
tracer: &Tracer,
operation_name: S
) -> HSpan
[src]
&self,
tracer: &Tracer,
operation_name: S
) -> HSpan
Create a follower RtSpan from this SpanContext NB: there is intentionally no method to create a child span from a context, since it's assumed that all inter-process points of a trace are async and the parent span will have ended before this one does
pub fn encode(&self) -> Result<EncodedSpanContext>
[src]
Serialize to binary format for packing into a IPC message
pub fn decode(enc: &EncodedSpanContext) -> Result<Self>
[src]
Deserialize from binary format
Auto Trait Implementations
impl Send for HSpanContext
impl Sync for HSpanContext
impl Unpin for HSpanContext
impl UnwindSafe for HSpanContext
impl RefUnwindSafe for HSpanContext
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,