Shopify Checkout Function Error Logging

Does anyone know how to get error logging/monitoring in shopify checkout functions? These functions are closed to outside fetch/api calls, so I cannot use something like Sentry. They log information to the partner account where you can view error logs, but that will not notify me of an error. I would have to find out from a customer or something first.

Shopify docs say that you will get notified in this way: “When a function is executed and an error occurs, a banner displays in the customization page of the Shopify admin.”

I don’t really know where to find this customization page. It also seems like you are still expected to regularly check this page to see if there is an error. I would prefer the error be sent to me via email or slack or something. Otherwise it will likely not get noticed until I get around to taking a look at this page.

Any ideas on how to get notified of these errors would be super helpful.

Context:

We have a checkout function that is hiding/renaming shipping options based on user preferences. This has the potential to cause a situation where all of the shipping options could be hidden. I have created many error conditions and made sure that the function should never do that. However, when this does happen, the user is not able to check out. Additionally, I have seen the function crash or do something weird in a way that causes the whole checkout screen to error out and say that checkout is unavailable or broken. That concerns me because it means that if I release an update that breaks this function, I could take down our checkout. There is no way of seeing when these errors might happen so that I can catch them quickly and fix our checkout.

Hey @zachsitka

I checked with the Functions team on this an they said:


We don’t have any solution for monitoring today, but it’s something we are considering for the future. If it’s a custom app, they would see that the errors are happening in the Partner Dash, in addition to the admin notification at Settings > Shipping and Delivery > Delivery customizations (since that’s what this appears to be).

I have seen the function crash or do something weird in a way that causes the whole checkout screen to error out and say that checkout is unavailable or broken. That concerns me because it means that if I release an update that breaks this function, I could take down our checkout.This absolutely should not happen, if their checkout crashes that should be reported to merchant support.