tracing-layer-slack
tracing-layer-slack
provides a Layer
implementation based on top of a tracing
Subscriber
and tracing-bunyan-formatter
's JsonStorageLayer
:
JsonStorageLayer
, to attach contextual information to spans for ease of consumption by downstreamLayer
s, viaJsonStorage
andSpan
'sextensions
;SlackForwardingLayer
, which sends an HTTP POST request (viatokio
andreqwest
) to a user-defined Slack webhook URL upon event creation.
Installation
Configure the dependencies and pull directly from GitHub:
[]
= { = "1.0", = ["full"] }
= "0.1"
= "0.2"
= { = "0.2", = false }
= { = "https://github.com/seanpianka/tracing-layer-slack", = "master" }
Examples
Simple
use Duration;
use Regex;
use ;
use ;
use ;
pub async
pub async
pub async
async