decord/source/1056_httpContextIntegration.js

25 lines
819 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1056
2026-07-23 10:11:24 +00:00
// Function ID: 11310
2026-07-20 16:05:17 +00:00
// Name: httpContextIntegration
2026-07-23 10:11:24 +00:00
// Dependencies: [794, 1004]
2026-07-20 16:05:17 +00:00
// Module 1056 (httpContextIntegration)
2026-07-23 10:11:24 +00:00
import registerSpanErrorInstrumentation from "registerSpanErrorInstrumentation";
2026-07-20 16:05:17 +00:00
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2026-07-23 10:11:24 +00:00
export const httpContextIntegration = registerSpanErrorInstrumentation.defineIntegration(() => ({
2026-07-20 16:05:17 +00:00
name: "HttpContext",
preprocessEvent(request) {
2026-07-23 10:11:24 +00:00
let obj = outer1_0(outer1_1[1]);
2026-07-20 16:05:17 +00:00
const httpRequestData = obj.getHttpRequestData();
request = request.request;
let headers;
if (null != request) {
headers = request.headers;
}
obj = { headers: Object.assign({}, httpRequestData.headers, headers) };
request.request = Object.assign({}, httpRequestData, request.request, obj);
}
}));