Struct tracing_layer_slack::SlackLayerBuilder [−][src]
pub struct SlackLayerBuilder { /* fields omitted */ }
Expand description
A builder for creating a Slack layer.
The layer requires a regex for selecting events to be sent to Slack by their target. Specifying no filter (e.g. “.*”) will cause an explosion in the number of messages observed by the layer.
Several methods expose initialization of optional filtering mechanisms, along with Slack configuration that defaults to searching in the local environment variables.
Implementations
Filter events by their message.
Filter type semantics:
- Positive: Exclude an event if the message MATCHES a given regex, and
- Negative: Exclude an event if the message does NOT MATCH a given regex.
Filter events by fields.
Filter type semantics:
- Positive: Exclude the event if its key MATCHES a given regex.
- Negative: Exclude the event if its key does NOT MATCH a given regex.
Filter fields of events from being sent to Slack.
Filter type semantics:
- Positive: Exclude event fields if the field’s key MATCHES any provided regular expressions.
Configure the layer’s connection to the Slack Webhook API.
Create a SlackLayer and its corresponding background worker to (async) send the messages.
Auto Trait Implementations
impl RefUnwindSafe for SlackLayerBuilder
impl Send for SlackLayerBuilder
impl Sync for SlackLayerBuilder
impl Unpin for SlackLayerBuilder
impl UnwindSafe for SlackLayerBuilder
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