【发布时间】:2016-07-18 15:04:27
【问题描述】:
我正在尝试使用 raven-js 捕获 js 错误。我有以下代码
...
try
rs.endsWith "#{rsp.source_identifier}/"
catch e
Raven.captureException(e, {extra:{rs: rs, app: app}})
我在哨兵中看到这个错误,但我没有看到额外的变量,例如rs 和应用程序。我看到的唯一额外内容是:
“会话:持续时间”:581889
在完整的错误 json 中,我看到以下内容:
"errors": [
{
"type": "invalid_attribute",
"name": "rs"
},
{
"type": "invalid_attribute",
"name": "app"
}
],
"extra": {
"session:duration": 581889
},
如何将此变量传递给哨兵,以便它们实际出现在哨兵中?
【问题讨论】:
标签: javascript sentry raven