Closed
Description
https://remix.run/docs/en/main/pages/v2
Coming soon - let's make sure our SDK can work with it!
### Tasks
- [x] Add integration tests for enabled v2 features - #8397
- [x] Instrument `ErrorBoundary` for client-side error reporting - #8415
- [x] Instrument `handleError` for server-side error reporting - #8415
- [ ] Update documentation - https://github.com/getsentry/sentry-docs/pull/7320
Reacted by Alex Luong
Metadata
Metadata
Assignees
Labels
No labels
Projects
- StatusShow more project fieldsNo status
Activity
onurtemizkan commentedon Jun 6, 2023
Made a mini research on what needs to be done to support Remix v2, looking at their pre-release document.
File System Route Convention
Not likely to affect us, as we are instrumenting routes by iterating the server build, instead of following folder structures, filenames.
Will still need to check if anything inside the server build folder changed.
Route
metaWe use this API not just for monkey-patching. We also use and patch it to inject
sentry-traceandbaggageheaders.Looks like both the API and the route behaviour will change here. 👇Will need to come up with a new solution here, as we were using the previous behaviour to inject
sentry-traceandbaggageheaders.Update: I just tested it with the
v2_metafeature flag, and it's working fine with our current SDK.CatchBoundaryandErrorBoundaryWrapping those to get client-side errors reported (also fallback screened) consistently is already discussed at #5762. Remix merging
CatchBoundaryandErrorBoundarywill probably make it easier.We should also look at how to instrument the new
useRouteErrorhook.We can stop auto-wrapping root component with
@sentry/react'sErrorBoundary, and instrument Remix'sErrorBoundaryinstead. This way we will report any error that Remix considers an error.This will require some changes in usage, making client-side error-tracking opt-in. See: #5762 (comment)
serverModuleFormatWe may also need to investigate whether this will create any issues during server-side auto-instrumentation.
dmarkow commentedon Jun 6, 2023
v1.17.0 (released today) has some new features for dealing with server-side errors that may be useful to integrate as well.
AbhiPrasad commentedon Jun 15, 2023
We'll have to make sure we work with the Remix's future flags: https://remix.run/docs/en/main/pages/api-development-strategy
huw commentedon Jul 30, 2023
Just FYI the current solution will fail once Remix actually release v2, because the future flags will be deleted. I am not aware of a way to test for v2 or not; you might be able to check for other API changes. This is somewhat urgent because v2 will be the next release.
AbhiPrasad commentedon Jul 31, 2023
@huw, thanks for the heads up! Created #8681 to track this.