我使用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
,但是有可能以某种方式传递整个数组而不进行解析吗?