fix(developer): Sentry in Server should honour reporting settings
Fixes #9939. Uses refactored KeymanSentry.ts in developer-utils and updates the loader in Server to run from that. The changes to tray.ts and friends are required to deal with a top-level await issue with the shutdown call. The top-level await issue is described in detail at https://marc.durdin.net/2023/11/dynamic-import-on-node-js-with-circular-dependencies-leads-to-interesting-failure-modes/ tl;dr: shutdown needed to do a proper Sentry shutdown. The shutdown code was in index.ts. This led to a circular dependency and caused a silent and abrupt exit code 13 in Node.js. Moved shutdown code into shutdown.ts to resolve this.
parent
8e6252c7
Please register or sign in to comment