justbetter / magento2-sentry

Magento 2 module to log to Sentry
MIT License
165 stars 70 forks source link

Adding environment to js integration #62

Closed matthiashamacher closed 3 years ago

matthiashamacher commented 3 years ago

Summary As mentioned in #61 the JS integration does not provide the environment. I also confirmed the problem. This is because the environment is not provided to the Sentry init in the script tag.

Result Adding the environment to the Sentry.init call shows it in Sentry.

Screenshot 2020-11-28 at 17 00 14
indykoning commented 3 years ago

Looks good!

Thank you for the PR, i will release it by the end of the day 🚀