[−][src]Struct holochain_tracing::SpanContext
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 RjSpan 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 follower_<'a, N: Into<Cow<'static, str>>, F>(
&'a self,
tracer: &Tracer,
operation_name: N,
f: F
) -> HSpan where
F: FnOnce(StartSpanOptions<BoxSampler<SpanContextState>, SpanContextState>) -> RjSpan,
[src]
&'a self,
tracer: &Tracer,
operation_name: N,
f: F
) -> HSpan where
F: FnOnce(StartSpanOptions<BoxSampler<SpanContextState>, SpanContextState>) -> RjSpan,
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
pub fn wrap<T>(self, data: T) -> SpanWrap<T>
[src]
Wrap this context in a SpanWrap along with some user data
Trait Implementations
impl Clone for HSpanContext
[src]
fn clone(&self) -> HSpanContext
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for HSpanContext
[src]
Auto Trait Implementations
impl RefUnwindSafe for HSpanContext
impl Send for HSpanContext
impl Sync for HSpanContext
impl Unpin for HSpanContext
impl UnwindSafe for HSpanContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,