Skip to content

Commit 2a0dcb6

Browse files
authored
Update manual-setup.mdx (#10393)
The old method wrapRemixHandleError is marked as deprecated. Replace with the new one mentioned in getsentry/sentry-javascript#10212
1 parent 756f294 commit 2a0dcb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/platforms/javascript/guides/remix/manual-setup.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,12 @@ export const ErrorBoundary: V2_ErrorBoundaryComponent = () => {
175175

176176
Sentry won't be able to capture your unexpected server-side errors automatically on Remix v2. To work around this, instrument the [`handleError`](https://remix.run/docs/en/main/file-conventions/entry.server#handleerror) function in your server entry point.
177177

178-
If you're using Sentry Remix SDK version `7.87.0` or higher, you can use `wrapRemixHandleError` to export as your `handleError` function.
178+
If you're using Sentry Remix SDK version `7.87.0` or higher, you can use `wrapHandleErrorWithSentry` to export as your `handleError` function.
179179

180180
```typescript {filename: entry.server.tsx (@sentry/remix >= 7.87.0)}
181-
import { wrapRemixHandleError } from "@sentry/remix";
181+
import { wrapHandleErrorWithSentry } from "@sentry/remix";
182182

183-
export const handleError = wrapRemixHandleError;
183+
export const handleError = wrapHandleErrorWithSentry;
184184
```
185185

186186
For SDK versions older than `7.87.0`, you can use `Sentry.captureRemixServerException` to capture errors inside `handleError`.

0 commit comments

Comments
 (0)