Replies: 2 comments 8 replies
-
Im not sure how you'd monitor server activity, but you can probably get Sentry's error boundary running post-hydration by using a custom client entry point! See: https://shopify.dev/custom-storefronts/hydrogen/data-sources/configure-default-entry-points Curious to see what others have to say here, I hadn't thought about error boundaries for server components. |
Beta Was this translation helpful? Give feedback.
4 replies
-
@iliapir2 you could define a custom logger that forwards to sentry or rollbar: https://shopify.dev/api/hydrogen/utilities/log#swap-logger-implementation |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Hydrogen team!
Thank you for all your work, recently we launched first production storefront using hydrogen (https://sheertex.com/brae/)
I want to catch all unhandled exceptions in production.
Can you help me to find a correct place in the code to inject error handling libraries/frameworks like Sentry or Rollbar?
I tried to wrap the whole app with but then it fails to hydrate.
Do you have any suggestions on where I should place it?
Beta Was this translation helpful? Give feedback.
All reactions