pub struct TracingEventSender<F = fn(_: TracingEvent)> { /* private fields */ }
Available on crate feature
sender
only.Expand description
Tracing [Subscriber
] that converts tracing events into (de)serializable presentation
that can be sent elsewhere using a customizable hook.
As an example, this subscriber is used in the Tardigrade client library to send workflow traces to the host via a WASM import function.
§Examples
See crate-level docs for an example of usage.
Implementations§
Source§impl<F: Fn(TracingEvent) + 'static> TracingEventSender<F>
impl<F: Fn(TracingEvent) + 'static> TracingEventSender<F>
Trait Implementations§
Source§impl<F: Debug> Debug for TracingEventSender<F>
impl<F: Debug> Debug for TracingEventSender<F>
Source§impl<F: Fn(TracingEvent) + 'static> Subscriber for TracingEventSender<F>
impl<F: Fn(TracingEvent) + 'static> Subscriber for TracingEventSender<F>
Source§fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest
Source§fn record_follows_from(&self, span: &Id, follows: &Id)
fn record_follows_from(&self, span: &Id, follows: &Id)
Source§fn clone_span(&self, span: &Id) -> Id
fn clone_span(&self, span: &Id) -> Id
§fn on_register_dispatch(&self, subscriber: &Dispatch)
fn on_register_dispatch(&self, subscriber: &Dispatch)
Invoked when this subscriber becomes a [
Dispatch
]. Read more§fn max_level_hint(&self) -> Option<LevelFilter>
fn max_level_hint(&self) -> Option<LevelFilter>
Returns the highest verbosity level that this
Subscriber
will
enable, or None
, if the subscriber does not implement level-based
filtering or chooses not to implement this method. Read more§fn event_enabled(&self, event: &Event<'_>) -> bool
fn event_enabled(&self, event: &Event<'_>) -> bool
Determine if an [
Event
] should be recorded. Read more§fn drop_span(&self, _id: Id)
fn drop_span(&self, _id: Id)
👎Deprecated since 0.1.2: use
Subscriber::try_close
insteadThis method is deprecated. Read more
§fn current_span(&self) -> Current
fn current_span(&self) -> Current
Returns a type representing this subscriber’s view of the current span. Read more
Auto Trait Implementations§
impl<F = fn(_: TracingEvent)> !Freeze for TracingEventSender<F>
impl<F> RefUnwindSafe for TracingEventSender<F>where
F: RefUnwindSafe,
impl<F> Send for TracingEventSender<F>where
F: Send,
impl<F> Sync for TracingEventSender<F>where
F: Sync,
impl<F> Unpin for TracingEventSender<F>where
F: Unpin,
impl<F> UnwindSafe for TracingEventSender<F>where
F: UnwindSafe,
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