ゴール
Sentryに送信されたエラーがSlackへ通知される
Slackの設定
- 通知先のSlackチャンネルを作成

-
Slack > App Directory > Manage > Apps で
Sentry Notifications
を検索しクリック
https://{workspace-url}.slack.com/apps/manage

-
Sentry Notifications > Settings で
Add to Slack
をクリック

- 通知先のSlackチャンネルを選択し、
Add Sentry Notifications integration
をクリック

-
Browse Apps > Sentry Notifications > Edit configuration に記載されている
Webhook URL
をコピーしておく
Sentryの設定
-
Sentry > Projects の
Create Project
から新規プロジェクトを作成
https://sentry.io/organizations/{organaization-name}/projects/

-
Settings > [Organization Name] > Integrations で
Slack (Legacy)
を選択

-
Settings > [Organization Name] > Integrations > Integration Details > Slack (Legacy) で
Add to Project
ボタンをクリック
-
作成したプロジェクトを選択

-
Settings > [Organization Name] > [Project Name] > Legacy Integrations > Integration Details > Slack の
Webhook URL
に、Slackの設定 5でコピーしたURLをペーストしSave Changes
をクリック

-
Enable Plugin
をONに設定

-
Test Plugin
をクリック

-
Slackチャンネルを確認する
slackにテスト通知がきたら連携成功!もう少しです -
作成したプロジェクトの Settings > Alerts の
New Alert Rule
をクリック

- Slackに通知する条件を入力し、
Save Rule
をクリック(通知したい条件分ルールを作成する)

- アプリケーションに Client Keys(DSN) を設定
終わり
以上になります。お疲れ様でした