LoginSignup
3
3

More than 5 years have passed since last update.

手動でAirbrakeへエラー通知を送る

Last updated at Posted at 2015-09-18

Airbrakeからの通知をチャットで受け取ってホゲホゲみたいなものを作っている時に任意のタイミングで通知を受け取りたかった。
Slack Integraton 設定でテスト投稿できるけど、"Test message created from Airbrake.*​" で疎通確認するだけで実際のレポートと形式が違う。

ブラウザのJavaScriptコンソールから以下を実行する

// おまじない
Airbrake._params.arguments = [];
Airbrake.push({error: "にゃー"});

スクリーンショット 2015-09-18 6.32.58 PM.png

送れました。

たくさん送る。

_.times(10, () => { Airbrake.push({error: "クケー"}) });

他人のサイトで試さないように

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3