pub struct WASMWorkerSpanProcessor { /* private fields */ }
Expand description
A SpanProcessor
that exports asynchronously when asked to do it.
Trait Implementations§
Source§impl Debug for WASMWorkerSpanProcessor
impl Debug for WASMWorkerSpanProcessor
Source§impl SpanProcessExt for WASMWorkerSpanProcessor
impl SpanProcessExt for WASMWorkerSpanProcessor
fn force_flush<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = TraceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl SpanProcessor for WASMWorkerSpanProcessor
impl SpanProcessor for WASMWorkerSpanProcessor
Source§fn on_start(&self, _span: &mut Span, _cx: &Context)
fn on_start(&self, _span: &mut Span, _cx: &Context)
on_start
is called when a Span
is started. This method is called
synchronously on the thread that started the span, therefore it should
not block or throw exceptions.Source§fn on_end(&self, span: SpanData)
fn on_end(&self, span: SpanData)
on_end
is called after a Span
is ended (i.e., the end timestamp is
already set). This method is called synchronously within the Span::end
API, therefore it should not block or throw an exception.Source§fn force_flush(&self) -> TraceResult<()>
fn force_flush(&self) -> TraceResult<()>
Force the spans lying in the cache to be exported.
Source§fn shutdown(&mut self) -> TraceResult<()>
fn shutdown(&mut self) -> TraceResult<()>
Shuts down the processor. Called when SDK is shut down. This is an
opportunity for processors to do any cleanup required.
Auto Trait Implementations§
impl !Freeze for WASMWorkerSpanProcessor
impl !RefUnwindSafe for WASMWorkerSpanProcessor
impl Send for WASMWorkerSpanProcessor
impl Sync for WASMWorkerSpanProcessor
impl Unpin for WASMWorkerSpanProcessor
impl !UnwindSafe for WASMWorkerSpanProcessor
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
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 more