前回インストールした Sentry に Ruby からイベントを登録してみます。 Ruby から Sentry を使うには、プロジェクトの設定画面の Ruby のところにも書いてあるように sentry-raven という gem を使います。 getsentry/raven-ruby https://github.com/getsentry/raven-ruby インストール gem から入れる場合は以下。 # gem install sentry-raven --no-rdoc --no-ri bundler から入れる場合は Gemfile を作成。 # bundle init # vi Gemfile 以下を追記します。 gem "sentry-raven" bundle install します。 # bundle install Ruby から使う 以下のような Ruby コード
![Ruby から Sentry を使う - akishin999の日記](https://cdn-ak-scissors.b.st-hatena.com/image/square/a66d90737fc11d7b20721f06ecdcdab4f3b6a2f5/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fa%2Fakishin999%2F20140323%2F20140323180516.jpg)