rollbar / rollbar.js

Error tracking and logging from Javascript to Rollbar
https://docs.rollbar.com/docs/javascript
MIT License
566 stars 213 forks source link

Report metrics from windows.performance #658

Open jessewgibbs opened 5 years ago

jessewgibbs commented 5 years ago

Originally suggested in https://app.intercom.io/a/apps/rlisg82q/inbox/inbox/487663/conversations/10894526158.

It would be great to get a rollbar automatically if [window.performance.memory] goes over a certain amount.

waltjones commented 5 years ago

window.performance.memory is Chrome only, and the standardized window.performance data doesn't include a memory measurement. (Chrome could reasonably remove this feature at any time.) Do we want to proceed anyway?

brianr commented 5 years ago

@waltjones I'd say yes. In general, I think we can have features that work in only the environments where the data is available - applying that here, this kind of message would of course only be able to fire in browsers that provide the data.