Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add source map support to react.componentStack metadata #2097

Open
RobertMic opened this issue Mar 15, 2024 · 1 comment
Open

Add source map support to react.componentStack metadata #2097

RobertMic opened this issue Mar 15, 2024 · 1 comment
Labels
backlog We hope to fix this feature/bug in the future feature request Request for a new feature

Comments

@RobertMic
Copy link

Description

We're using the provided React error boundary to capture app wide errors. This is working, but the included react.componentStack metadata doesn't take advantage of our uploaded source maps and still shows up as minified. This makes this information fairly useless, it would be nice to have proper source mapping in this section like we do in the stacktrace tab

Screenshot 2024-03-15 at 9 43 15 AM

Describe the solution you'd like

Provide some sort of mechanism for metadata that can allow us to pass a data format that can, at a minimum, take advantage of uploaded source maps, and ideally, be rendered nicely like the stacktrace tab. Also, update the React error boundary to use this new mechanism out of the box for react.componentStack metadata.

Describe alternatives you've considered

No alternative features. One possible workaround on our end is doing this mapping manually. We have access to our own source maps on our server, so we could expose a sort of bugsnag proxy API that can special case handle react.componentStack by reading on disk source maps and string substituting the minified names/file/row/column for the actual component name/file/row/column.

@mclack
Copy link
Contributor

mclack commented Mar 15, 2024

Hi @RobertMic

We do have an item on our product backlog to support symbolication of the React component stack.

I've noted the additional interest in this feature, and we will make sure to post any future updates on this thread.

@mclack mclack added feature request Request for a new feature backlog We hope to fix this feature/bug in the future labels Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog We hope to fix this feature/bug in the future feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants