From 227e6d621c3f5f9ed7fa3d9f571171be7477172d Mon Sep 17 00:00:00 2001 From: Ben Sherman Date: Mon, 30 Sep 2024 09:29:51 -0700 Subject: [PATCH] chore(dev): static fingerprint for error with useNodeValue --- weave-js/src/react.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/weave-js/src/react.tsx b/weave-js/src/react.tsx index d11c404d8cd..ad7a4cb3aa6 100644 --- a/weave-js/src/react.tsx +++ b/weave-js/src/react.tsx @@ -1,3 +1,4 @@ +import * as Sentry from '@sentry/react'; import { callOpVeryUnsafe, Client, @@ -354,8 +355,9 @@ export const useNodeValue = ( const message = 'Node execution failed (useNodeValue): ' + errorToText(error); // console.error(message); - - throw new UseNodeValueServerExecutionError(message); + const err = new UseNodeValueServerExecutionError(message); + Sentry.captureException(err, {fingerprint: ['useNodeValue']}); + throw err; } if (isConstNode(node)) { if (isFunction(node.type)) {