stayallive / wp-sentry

A (unofficial) WordPress plugin reporting PHP and JavaScript errors to Sentry.
https://wordpress.org/plugins/wp-sentry-integration/
MIT License
305 stars 48 forks source link

Corrected key name for JS context #130

Closed giilby closed 2 years ago

giilby commented 2 years ago

After running with this plugin for a while, I noticed that our JavaScript errors were never being associated with any real users. I subsequently discovered that both wp-sentry-browser.min.js and wp-sentry-browser-tracing.min.js were looking for wp_sentry.context, but the wp_sentry object was being populated with a key named content.

stayallive commented 2 years ago

Yikes, that is a bit embarrassing... thanks for noticing and fixing!