Files
klz-cables.com/.pnpm-store/v10/files/a0/9e9e1a9811b54712b9f962e79008ae2d267c241cb42c274513de9b6c3ca383ab4efdec07984aa94c3fa3a0b1c73167b921cacb2889634bbc477196afca5690
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

37 lines
1.3 KiB
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
const INTEGRATION_NAME = 'ProcessSession';
/**
* Records a Session for the current process to track release health.
*/
const processSessionIntegration = core.defineIntegration(() => {
return {
name: INTEGRATION_NAME,
setupOnce() {
core.startSession();
// Emitted in the case of healthy sessions, error of `mechanism.handled: true` and unhandledrejections because
// The 'beforeExit' event is not emitted for conditions causing explicit termination,
// such as calling process.exit() or uncaught exceptions.
// Ref: https://nodejs.org/api/process.html#process_event_beforeexit
process.on('beforeExit', () => {
const session = core.getIsolationScope().getSession();
// Only call endSession, if the Session exists on Scope and SessionStatus is not a
// Terminal Status i.e. Exited or Crashed because
// "When a session is moved away from ok it must not be updated anymore."
// Ref: https://develop.sentry.dev/sdk/sessions/
if (session?.status !== 'ok') {
core.endSession();
}
});
},
};
});
exports.processSessionIntegration = processSessionIntegration;
//# sourceMappingURL=processSession.js.map