Struct tracing_tunnel::TracingEventSender
source · 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 new_span(&self, span: &Attributes<'_>) -> Id
fn new_span(&self, span: &Attributes<'_>) -> Id
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
source§fn on_register_dispatch(&self, subscriber: &Dispatch)
fn on_register_dispatch(&self, subscriber: &Dispatch)
source§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 moresource§fn event_enabled(&self, event: &Event<'_>) -> bool
fn event_enabled(&self, event: &Event<'_>) -> bool
source§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
source§fn current_span(&self) -> Current
fn current_span(&self) -> Current
Returns a type representing this subscriber’s view of the current span. Read more