tracing-layer-slack-discord
This repository contains Layer implementations for sending tracing events to Slack and Discord.
Synopsis
DiscordLayer and SlackLayer send POST requests via tokio and reqwest to a Discord Webhook URL and Slack Webhook URL for each new tracing event, depending on the user-supplied event filtering rules. The format of the embedded message is statically defined.
This layer also looks for an optional JsonStorageLayer extension on the parent span of each event. This extension may contain additional contextual information for the parent span of an event, which is included into the Discord message.
Features
- Send trace logs to Slack and Discord channels.
- Configurable to suit your needs.
- Easy to integrate with existing Rust applications.
Usage
Add the following to your Cargo.toml:
[]
= "0"
= "0"
Then, in your application:
use Regex;
use ;
use ;
use ;
use ;
pub async
async
License
This project is licensed under the Apache-2.0 License - see the LICENSE file for details.