2026-07-20 16:05:17 +00:00
|
|
|
// Module ID: 920
|
2026-07-24 07:16:23 +00:00
|
|
|
// Function ID: 10056
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: set
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [57, 916]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: filterMcpPiiFromSpanData
|
|
|
|
|
|
|
|
|
|
// Module 920 (set)
|
2026-07-23 10:11:24 +00:00
|
|
|
import _slicedToArray from "_slicedToArray";
|
|
|
|
|
|
2026-07-20 16:05:17 +00:00
|
|
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
2026-07-23 10:11:24 +00:00
|
|
|
const items = [require("module_916").CLIENT_ADDRESS_ATTRIBUTE, require("module_916").CLIENT_PORT_ATTRIBUTE, require("module_916").MCP_RESOURCE_URI_ATTRIBUTE];
|
2026-07-20 16:05:17 +00:00
|
|
|
const set = new Set(items);
|
|
|
|
|
|
|
|
|
|
export const filterMcpPiiFromSpanData = function filterMcpPiiFromSpanData(merged, BooleanResult) {
|
|
|
|
|
let reduced = merged;
|
|
|
|
|
if (!BooleanResult) {
|
|
|
|
|
const _Object = Object;
|
|
|
|
|
const entries = Object.entries(merged);
|
|
|
|
|
reduced = entries.reduce((arg0, arg1) => {
|
2026-07-23 10:11:24 +00:00
|
|
|
const tmp = outer1_0(arg1, 2);
|
2026-07-20 16:05:17 +00:00
|
|
|
const first = tmp[0];
|
2026-07-23 10:11:24 +00:00
|
|
|
if (!outer1_1.has(first)) {
|
2026-07-20 16:05:17 +00:00
|
|
|
arg0[first] = tmp[1];
|
|
|
|
|
}
|
|
|
|
|
return arg0;
|
|
|
|
|
}, {});
|
|
|
|
|
}
|
|
|
|
|
return reduced;
|
|
|
|
|
};
|