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

Initiate the worker’s shutdown sequence.

Without invoking.teardown(), your application may exit before all Slack messages can be sent.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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