Files
klz-cables.com/.pnpm-store/v10/files/24/5294de443060a69ca401bd6fc784da3a4fc6725fdb6e72f03581465c8e6f344f02b25a500cb3977de435787fc0256a0b639f28b84e98923883261da6a388e6
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

36 lines
920 B
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
const helpers = require('../helpers.js');
/**
* Collects information about HTTP request headers and
* attaches them to the event.
*/
const httpContextIntegration = core.defineIntegration(() => {
return {
name: 'HttpContext',
preprocessEvent(event) {
// if none of the information we want exists, don't bother
if (!helpers.WINDOW.navigator && !helpers.WINDOW.location && !helpers.WINDOW.document) {
return;
}
const reqData = helpers.getHttpRequestData();
const headers = {
...reqData.headers,
...event.request?.headers,
};
event.request = {
...reqData,
...event.request,
headers,
};
},
};
});
exports.httpContextIntegration = httpContextIntegration;
//# sourceMappingURL=httpcontext.js.map