-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to integrate gatsby.js with Sentry.io? #3028
Comments
you can could instegrate an error boundary in |
Take a look into how Gatsby plugins for Google Analytics and Intercom.io work. You'll probably want to modify the |
I actually made a plugin for this, you can find it here: |
@octalmage awesome thanks! |
I have tried to install sentry.io with raven.js in two ways, but none of them seems to catch the errors correctly...
raven-js
via npmI wonder what kinds of error catching methods or utilities I can use in gatsby.js.
I can report the error manually using
Raven.captureException(e)
, which is stated at https://docs.sentry.io/clients/javascript/usage/#raven-js-reporting-errorsThe official documentation is available at https://docs.sentry.io/clients/javascript/integrations/react/
The text was updated successfully, but these errors were encountered: