errbit自定义通知回溯

时间:2014-12-10 11:22:25

标签: airbrake errbit

我使用Airbrake.notify方法向Errbit发送自定义通知。我想传递backtrace,它已经以正确的errbit-ready方式格式化,例如:

 [{"function"=>"getAttr", "file"=>"[PROJECT_ROOT]/assets/backbone.stickit.js?body=1:285", "line"=>"29"},
 {"function"=>"Stickit.ViewMixin.addBinding", "file"=>"[PROJECT_ROOT]/assets/backbone.stickit.js?body=1:197", "line"=>"26"},
 {"function"=>"Stickit.ViewMixin.addBinding/<", "file"=>"[PROJECT_ROOT]/assets/backbone.stickit.js?body=1:122", "line"=>"11"}]

目前我正在解析数组以生成一个字符串并将其作为Airbrake.notify选项传递给:backtrace,但是有可能以某种方式传递整个数组而不进行解析吗?

0 个答案:

没有答案