https://github.com/mimiquate/tower_slack
Elixir error tracking and reporting to Slack
https://github.com/mimiquate/tower_slack
elixir error-monitoring error-reporting error-tracking slack-webhook tower
Last synced: about 1 year ago
JSON representation
Elixir error tracking and reporting to Slack
- Host: GitHub
- URL: https://github.com/mimiquate/tower_slack
- Owner: mimiquate
- License: apache-2.0
- Created: 2024-07-19T16:39:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-18T12:52:12.000Z (about 1 year ago)
- Last Synced: 2025-03-18T13:45:39.782Z (about 1 year ago)
- Topics: elixir, error-monitoring, error-reporting, error-tracking, slack-webhook, tower
- Language: Elixir
- Homepage: https://hex.pm/packages/tower_slack
- Size: 116 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# TowerSlack
[](https://github.com/mimiquate/tower_slack/actions?query=branch%3Amain)
[](https://hex.pm/packages/tower_slack)
[](https://hexdocs.pm/tower_slack)
Error tracking and reporting to Slack.
A simple [post-to-Slack](https://api.slack.com/messaging/webhooks) reporter for [Tower](https://github.com/mimiquate/tower) error handler.
## Installation
The package can be installed by adding `tower_slack` to your list of dependencies in `mix.exs`:
```elixir
# mix.exs
def deps do
[
{:tower_slack, "~> 0.6.0"}
]
end
```
## Usage
Register the reporter with Tower.
```elixir
# config/config.exs
config(
:tower,
:reporters,
[
# along any other possible reporters
TowerSlack
]
)
```
And make any additional configurations specific to this reporter.
```elixir
# config/runtime.exs
config :tower_slack,
otp_app: :your_app,
webhook_url: System.get_env("TOWER_SLACK_WEBHOOK_URL"),
environment: System.get_env("DEPLOYMENT_ENV", to_string(config_env()))
```
Instructions to create the Slack Webhook URL in https://api.slack.com/messaging/webhooks.
## License
Copyright 2024 Mimiquate
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.