Files
klz-cables.com/.pnpm-store/v10/files/d4/7c804d93d4610dd0a6164f05b80bf7b01839c3bc179dd6de98dad2609178ff68d1d0e8cba1c60ea8301b0eb87f9b95d8e0da3de9ff8c52a6b65f7085da56d8
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

40 lines
1.1 KiB
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
const responseEnd = require('./utils/responseEnd.js');
/**
* Reports errors passed to the the Next.js `onRequestError` instrumentation hook.
*/
function captureRequestError(error, request, errorContext) {
core.withScope(scope => {
scope.setSDKProcessingMetadata({
normalizedRequest: {
headers: core.headersToDict(request.headers),
method: request.method,
} ,
});
scope.setContext('nextjs', {
request_path: request.path,
router_kind: errorContext.routerKind,
router_path: errorContext.routePath,
route_type: errorContext.routeType,
});
scope.setTransactionName(errorContext.routePath);
core.captureException(error, {
mechanism: {
handled: false,
type: 'auto.function.nextjs.on_request_error',
},
});
responseEnd.waitUntil(responseEnd.flushSafelyWithTimeout());
});
}
exports.captureRequestError = captureRequestError;
//# sourceMappingURL=captureRequestError.js.map