You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the global reportError function could be an idiomatic way to report errors to Sentry from JavaScript, if it is not too general for your use case. I don't find much talk about this function on the webs, but it has been available across major browsers for some time.
Solution Brainstorm
The Capturing Errors and Events page of the docs could have a small section that mentions reportError as an alternative.
The text was updated successfully, but these errors were encountered:
camsteffen
changed the title
Document reportError as an option for reporting in JavaScript
Document reportError as an option for reporting in browsers
Aug 31, 2024
Seems like a good idea, but captureException has some logic to it like getting the current scope. I guess using reportError alone would not work with the SDK and we would have to explicitly support it. Or how would you want it to be used? :)
Problem Statement
I think the global
reportError
function could be an idiomatic way to report errors to Sentry from JavaScript, if it is not too general for your use case. I don't find much talk about this function on the webs, but it has been available across major browsers for some time.Solution Brainstorm
The Capturing Errors and Events page of the docs could have a small section that mentions
reportError
as an alternative.The text was updated successfully, but these errors were encountered: