Integration for sentry.io error logging service. Automatically upload diagnostic logs and even crash logs, get full debugging information, and see what's erroring and how often!
Step 0: sign up for an account on sentry.io; or install the sentry server on your own machine(s)
Step 1 (optional): drag
sentry_handler object into your room, it is persistent. the object handles recording breadcrumbs. This is optional because sentry_init now will spawn a sentry_handler for you
Step 2: initialize sentry using
sentry_init("<your sentry.io project DSN>"); and your project's DSN that you get after setting up an account on sentry.io
Step 3: To update breadcrumbs, use
sentry_add_breadcrumb(category, level, message). Breadcrumbs help you trace the sequence of actions a game took leading up to an exception/message.
Step 4: To log a message, use
sentry_capture_message(message); other arguments are available for finer grain control over logged messages.
GMSentry can be paired with YellowAfterLife's catch_error extension. After installing catch_error, you can use
sentry_capture_exception(exception_string), passing the GM's exception string. The string will be decoded and parsed.