@blaxel/core 0.2.74 → 0.2.75-preview.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/common/sentry.js +6 -9
- package/dist/cjs/common/settings.js +2 -2
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/common/sentry.js +6 -9
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/common/sentry.js +6 -9
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/common/sentry.js +6 -9
- package/dist/esm-browser/common/settings.js +2 -2
- package/package.json +1 -1
|
@@ -188,14 +188,11 @@ export function initSentry() {
|
|
|
188
188
|
handlersRegistered = true;
|
|
189
189
|
// Node.js specific handlers
|
|
190
190
|
if (typeof process !== "undefined" && typeof process.on === "function") {
|
|
191
|
-
//
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
191
|
+
// Flush Sentry on termination signals without calling process.exit(),
|
|
192
|
+
// so the host application retains control over its own shutdown lifecycle.
|
|
193
|
+
const signalHandler = () => {
|
|
194
|
+
flushSentry(500).catch(() => {
|
|
195
195
|
// Silently fail
|
|
196
|
-
})
|
|
197
|
-
.finally(() => {
|
|
198
|
-
process.exit(signal === "SIGTERM" ? 143 : 130);
|
|
199
196
|
});
|
|
200
197
|
};
|
|
201
198
|
// Monitor uncaught exceptions to capture SDK errors without
|
|
@@ -205,8 +202,8 @@ export function initSentry() {
|
|
|
205
202
|
captureException(error);
|
|
206
203
|
}
|
|
207
204
|
};
|
|
208
|
-
process.on("SIGTERM",
|
|
209
|
-
process.on("SIGINT",
|
|
205
|
+
process.on("SIGTERM", signalHandler);
|
|
206
|
+
process.on("SIGINT", signalHandler);
|
|
210
207
|
process.on("uncaughtExceptionMonitor", uncaughtExceptionMonitorHandler);
|
|
211
208
|
// Intercept console.error to capture SDK errors that are caught and logged
|
|
212
209
|
const originalConsoleError = console.error;
|
|
@@ -3,8 +3,8 @@ import { authentication } from "../authentication/index.js";
|
|
|
3
3
|
import { env } from "../common/env.js";
|
|
4
4
|
import { fs, os, path } from "../common/node.js";
|
|
5
5
|
// Build info - these placeholders are replaced at build time by build:replace-imports
|
|
6
|
-
const BUILD_VERSION = "0.2.
|
|
7
|
-
const BUILD_COMMIT = "
|
|
6
|
+
const BUILD_VERSION = "0.2.75-preview.116";
|
|
7
|
+
const BUILD_COMMIT = "c11786dc016c39977cd4ecffa18d74c192186415";
|
|
8
8
|
const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
|
|
9
9
|
// Cache for config.yaml tracking value
|
|
10
10
|
let configTrackingValue = null;
|