Struct tracing_layer_slack::SlackBackgroundWorker [−][src]
pub struct SlackBackgroundWorker { /* fields omitted */ }
Expand description
This worker manages a background async task that schedules the network requests to send traces to the Slack on the running tokio runtime.
Ensure to invoke .startup()
before, and .teardown()
after, your application code runs. This
is required to ensure proper initialization and shutdown.
tracing-layer-slack
synchronously generates payloads to send to the Slack API using the
tracing events from the global subscriber. However, all network requests are offloaded onto
an unbuffered channel and processed by a provided future acting as an asynchronous worker.
Implementations
Auto Trait Implementations
impl !RefUnwindSafe for SlackBackgroundWorker
impl Send for SlackBackgroundWorker
impl Sync for SlackBackgroundWorker
impl Unpin for SlackBackgroundWorker
impl !UnwindSafe for SlackBackgroundWorker
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more