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
This will allow you to initialize and use the SDK as per the docs. Unhandled exceptions are also captured automatically by Sentry, and you can add external methods as needed via the rescript JS API.
The only issue here is that Rescript does not support sourcemaps - which means there is no way to associate the minified JS error to the original rescript file in a production error stacktrace. See rescript-lang/rescript#1699 for more details. This means Sentry (and other production error monitoring).
I would recommend reaching out to the current ReScript maintainers - maybe they've changed their mind on supporting sourcemaps?
I don't think the team has the bandwidth to maintain a set of Rescript bindings for the SDK, but anyone is free to help step in here - PRs are welcome! We can help review PRs and give feedback!
Activity
AbhiPrasad commentedon Sep 5, 2023
Hey @listepo, thanks for writing in.
You can include the
@sentry/browserSDK via rescript's importing APIs and external API.Something like (sorry it's been 3+ years since I wrote rescript/reasonml/bucklescript so there might be some mistakes in syntax)
This will allow you to initialize and use the SDK as per the docs. Unhandled exceptions are also captured automatically by Sentry, and you can add external methods as needed via the rescript JS API.
The only issue here is that Rescript does not support sourcemaps - which means there is no way to associate the minified JS error to the original rescript file in a production error stacktrace. See rescript-lang/rescript#1699 for more details. This means Sentry (and other production error monitoring).
I would recommend reaching out to the current ReScript maintainers - maybe they've changed their mind on supporting sourcemaps?
I don't think the team has the bandwidth to maintain a set of Rescript bindings for the SDK, but anyone is free to help step in here - PRs are welcome! We can help review PRs and give feedback!
AbhiPrasad commentedon Sep 5, 2023
Going to transfer this as a discussion since we need more input on this.