From 2241b32d33070fa1a5162df9006ae167089d6e40 Mon Sep 17 00:00:00 2001 From: Onur Temizkan Date: Fri, 16 Feb 2024 16:41:27 +0000 Subject: [PATCH] Add example to migration docs. --- MIGRATION.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/MIGRATION.md b/MIGRATION.md index 30f715ae098e..172e106d9aaf 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -1003,8 +1003,6 @@ export class HeaderComponent { } ``` ---- - # Deprecations in 7.x You can use the **Experimental** [@sentry/migr8](https://www.npmjs.com/package/@sentry/migr8) to automatically update @@ -1142,7 +1140,16 @@ only be set later during the span lifecycle (and thus not be available during sa ## Deprecate `wrapRemixHandleError` in Remix SDK (since v7.100.0) -This release deprecates `wrapRemixHandleError` in favor of using `sentryHandleError` from `@sentry/remix`. +This release deprecates `wrapRemixHandleError` in favor of using `sentryHandleError` from `@sentry/remix`. It can be +used as below: + +````typescript +// entry.server.ts + +export const handleError = Sentry.wrapHandleErrorWithSentry(() => { + // Custom handleError implementation +}); +``` ## Deprecate using `getClient()` to check if the SDK was initialized @@ -1240,7 +1247,7 @@ typescript: ```ts const replay = getClient().getIntegrationByName('Replay'); -``` +```` ## Deprecate `Hub`