adopted-ember-addons / adopted-ember-addons/ember-cli-bugsnag
user/metadata not always provided when using Bugsnag.notifyException
- Ngôn ngữ chính
- JavaScript
- Star
- 20
- Fork
- 32
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
I'm reviewing some recent Bugsnags and realizing that the `user` and `metadata` tags are not always provided as part of the Bugsnag. I'm not 100% certain but I believe it's because there's some instances in our app where we recover from an error but still want to use `Bugsnag.notifyException`.
The problem seems to be, from my understanding of that code, that `getUser()` and `getMetadata()` don't get called except from within `onerror`: https://github.com/binhums/ember-cli-bugsnag/blob/master/app/instance-initializers/bugsnag.js#L50
The result of this seems to be that if the first Bugsnag report issued is a manual `notifyException`, it won't contain pull in your user data / metadata. But if an onerror occurred, it'll set these values for all future `notifyException`s.
I'm surprised no one's noticed this; it makes me wonder if I'm misusing the API somehow? Is it ok that I'm still using `Bugsnag.notifyException` to report handled exceptions? Or is there a better workflow?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.