I am looking for a functionality where users’ data is submitted to the server only when the user agrees to submit data.
Here’s the scenario
- Sentry is initialized on the client side and capture data and store it in local storage.
- We encounter an error which is captured by JS logic.
- We trigger a pop-up asking user if he/she would like to submit details.
- If the user agrees, submit sentry data to the server.
I don’t want to initialize sentry after an error occurs as it may miss some data points.