decord/source/857__getTraceInfoFromScope.js

38 lines
1.3 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 857
2026-07-25 08:10:48 +00:00
// Function ID: 9625
2026-07-20 16:05:17 +00:00
// Name: _getTraceInfoFromScope
2026-07-23 10:11:24 +00:00
// Dependencies: [825, 796, 833]
2026-07-20 16:05:17 +00:00
// Module 857 (_getTraceInfoFromScope)
2026-07-23 10:11:24 +00:00
const require = arg1;
let dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
arg5._getTraceInfoFromScope = function _getTraceInfoFromScope(arg0, arg1) {
2026-07-23 10:11:24 +00:00
const _require = arg0;
const dependencyMap = arg1;
2026-07-20 16:05:17 +00:00
if (arg1) {
2026-07-23 10:11:24 +00:00
let withScopeResult = _require(825).withScope(arg1, () => {
const activeSpan = callback(796).getActiveSpan();
2026-07-20 16:05:17 +00:00
if (activeSpan) {
2026-07-23 10:11:24 +00:00
let tmp2Result = tmp2(796);
2026-07-20 16:05:17 +00:00
let spanToTraceContextResult = tmp2Result.spanToTraceContext(activeSpan);
} else {
2026-07-23 10:11:24 +00:00
tmp2Result = tmp2(825);
spanToTraceContextResult = tmp2Result.getTraceContextFromScope(dependencyMap);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const obj4 = callback(833);
2026-07-20 16:05:17 +00:00
if (activeSpan) {
let dynamicSamplingContextFromSpan = obj4.getDynamicSamplingContextFromSpan(activeSpan);
} else {
2026-07-23 10:11:24 +00:00
dynamicSamplingContextFromSpan = obj4.getDynamicSamplingContextFromScope(callback, dependencyMap);
2026-07-20 16:05:17 +00:00
}
const items = [dynamicSamplingContextFromSpan, spanToTraceContextResult];
return items;
});
2026-07-23 10:11:24 +00:00
const obj = _require(825);
2026-07-20 16:05:17 +00:00
} else {
withScopeResult = [undefined, undefined];
}
return withScopeResult;
};