If a tree falls in a forest and no one is around to hear it, does it make a sound?
If your application encounters an exception and no alerts are sent, does it enable you to respond to issues in production quickly?
At Gadget, we’re confident that the answer to the second question is a resounding no. That’s why we’re excited to announce that you can now connect your Gadget applications to Sentry. With Gadget + Sentry, you get instant alerts and monitoring for your applications, allowing you to address production exceptions as quickly as possible.
Gadget’s built-in logger is a powerful tool that allows developers to craft complex queries to hone in on particular log messages. But logs can be noisy, and digging through past records can be difficult if you don’t have a good idea of what went wrong at what time. With Gadget’s new Sentry Connection, you will be automatically notified when uncaught exceptions are encountered in your production apps, and you can keep a record of these exceptions (along with useful debugging information!) in one place.
Watch the video or continue reading to learn how to set up and test a Sentry connection.
Boom! Your Gadget application is now connected to Sentry!
To test out your connection:
You will see an exception in the API Playground. You should also see the same exception in Sentry!
Success! You can now configure Sentry to monitor your production errors and exceptions, and send notifications when uncaught errors are encountered. The Sentry docs have more information on configuring your Sentry projects.
For more details on Gadget’s Sentry connection, including how to manually capture exceptions using the Sentry SDK, check out our Sentry connection documentation.
New to Gadget? Go through our automated product tagger tutorial to learn how to connect to Shopify, sync data, and run custom code in Gadget.
You can go through our product bundle app tutorial that uses Shopify Functions to apply discounts to bundled groups of products.