Pass additional variables to sentry using raven-js

javascript sentry raven

747 просмотра

1 ответ

10066 Репутация автора

I'm trying to catch a js error using raven-js. I have following code

  rs.endsWith "#{rsp.source_identifier}/"
catch e
  Raven.captureException(e, {extra:{rs: rs, app: app}})

I see this error in sentry, but i dont see extra variables, e.g. rs and app . Only extra that i see is:

"session:duration": 581889

in full error json i see following:

  "errors": [
      "type": "invalid_attribute",
      "name": "rs"
      "type": "invalid_attribute",
      "name": "app"
  "extra": {
    "session:duration": 581889

How to pass this vars to sentry, so they actually appear in sentry?

Автор: Aldarund Источник Размещён: 18.07.2016 03:04

Ответы (1)

3 плюса

2307 Репутация автора


This should show up under the "Additional data" box if you scroll down to the bottom of the issue view.

If this isn't working for you, can you reach out to me? I'm

Автор: ehfeng Размещён: 17.08.2016 03:49
Вопросы из категории :