LoginSignup
4
3

More than 5 years have passed since last update.

raven-ruby で Sentry にパラメータを送る

Posted at

getsentry/raven-rubyRaven.capture_message メソッドへのパラメータの渡し方は、こういう風になっている。

Raven.capture_message 'My Event!',
  logger: 'logger',
  extra: {
    my_custom_variable: 'value'
  },
  tags: {
    foo: 'bar'
  }

なので、こう送ると、

# capture_exception は capture_message の alias
Raven.capture_exception(
  e,
  {
    extra: {
      foo: 'foo'
    }
  }
)

こういう風にパラメータが見れる。

Screen Shot 2018-04-03 at 20.42.11.png

4
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
4
3