magento2-sentry icon indicating copy to clipboard operation
magento2-sentry copied to clipboard

Add user context whenever possible

Open indykoning opened this issue 1 year ago • 1 comments

Summary Currently we're only setting customer data on logs when a customer has an active session. This misses out on headless and admin errors, as well as customer data on exceptions.

Result This PR attempts to add the user type and user id with the usercontext. Then it will attempt to get user data from the admin and user session itself

indykoning avatar Mar 28 '24 15:03 indykoning

For some reason the admin gets forced to log out when the console is open in chrome This happens when interacting with the admin session in ANY way, getData, isLoggedIn, hasUser

indykoning avatar Mar 29 '24 08:03 indykoning