510 lines
20 KiB
JavaScript
510 lines
20 KiB
JavaScript
// Module ID: 7381
|
|
// Function ID: 7382
|
|
// Name: createChildOrRootSpan
|
|
// Dependencies: [32, 7374, 7380, 7369, 7382, 7352, 7364, 7365, 7366, 7359, 7357, 7375, 7347, 7379, 7383, 7385, 7376, 7386, 7388, 7362]
|
|
// Exports: continueTrace, startInactiveSpan, startNewTrace, startSpan, startSpanManual, suppressTracing, withActiveSpan
|
|
|
|
// Module 7381 (createChildOrRootSpan)
|
|
import _slicedToArray from "_slicedToArray";
|
|
|
|
function createChildOrRootSpan(forceTransaction) {
|
|
let parentSpan;
|
|
let scope;
|
|
let spanArguments;
|
|
let spanId;
|
|
let spanId2;
|
|
let traceId;
|
|
let traceId2;
|
|
({ parentSpan, spanArguments, scope } = forceTransaction);
|
|
let obj = require(7379) /* hasTracingEnabled */;
|
|
if (obj.hasTracingEnabled()) {
|
|
let tmpResult = tmp(7374);
|
|
const isolationScope = tmpResult.getIsolationScope();
|
|
if (parentSpan) {
|
|
if (!forceTransaction.forceTransaction) {
|
|
({ traceId, spanId } = parentSpan.spanContext());
|
|
const tmp9 = scope.getScopeData().sdkProcessingMetadata[__SENTRY_SUPPRESS_TRACING__];
|
|
let spanIsSampledResult = !tmp9;
|
|
if (!tmp9) {
|
|
tmpResult = tmp(7352);
|
|
spanIsSampledResult = tmpResult.spanIsSampled(parentSpan);
|
|
}
|
|
if (spanIsSampledResult) {
|
|
obj = {};
|
|
const merged = Object.assign(spanArguments);
|
|
obj.parentSpanId = spanId;
|
|
obj.traceId = traceId;
|
|
obj.sampled = spanIsSampledResult;
|
|
let sentrySpan = new tmp(7388).SentrySpan(obj);
|
|
} else {
|
|
obj = { traceId: null };
|
|
obj[0] = traceId;
|
|
sentrySpan = new tmp(7380).SentryNonRecordingSpan(obj);
|
|
}
|
|
const spanContextResult = parentSpan.spanContext();
|
|
tmp(7352).addChildSpanToSpan(parentSpan, sentrySpan);
|
|
const tmpResult1 = tmp(7352);
|
|
const client = tmp(7374).getClient();
|
|
if (client) {
|
|
client.emit("spanStart", sentrySpan);
|
|
if (spanArguments.endTimestamp) {
|
|
client.emit("spanEnd", sentrySpan);
|
|
}
|
|
}
|
|
const tmpResult2 = tmp(7374);
|
|
tmp(7352).addChildSpanToSpan(parentSpan, sentrySpan);
|
|
const tmpResult3 = tmp(7352);
|
|
}
|
|
tmp(7385).logSpanStart(sentrySpan);
|
|
const tmpResult4 = tmp(7385);
|
|
const result = tmp(7376).setCapturedScopesOnSpan(sentrySpan, scope, isolationScope);
|
|
return sentrySpan;
|
|
}
|
|
if (parentSpan) {
|
|
const dynamicSamplingContextFromSpan = tmp(7383).getDynamicSamplingContextFromSpan(parentSpan);
|
|
const tmpResult6 = tmp(7383);
|
|
({ traceId: traceId2, spanId: spanId2 } = parentSpan.spanContext());
|
|
const spanContextResult1 = parentSpan.spanContext();
|
|
const obj1 = { traceId: null, parentSpanId: null };
|
|
obj1[0] = traceId2;
|
|
obj1[1] = spanId2;
|
|
const tmpResult7 = tmp(7352);
|
|
const merged1 = Object.assign(spanArguments);
|
|
const tmp42 = _startRootSpan(obj1, scope, tmp(7352).spanIsSampled(parentSpan));
|
|
const spanIsSampledResult1 = tmp(7352).spanIsSampled(parentSpan);
|
|
tmp(7383).freezeDscOnSpan(tmp42, dynamicSamplingContextFromSpan);
|
|
sentrySpan = tmp42;
|
|
const tmpResult8 = tmp(7383);
|
|
} else {
|
|
const obj2 = {};
|
|
const merged2 = Object.assign(isolationScope.getPropagationContext());
|
|
const merged3 = Object.assign(scope.getPropagationContext());
|
|
const dsc = obj2.dsc;
|
|
const obj3 = { traceId: null, parentSpanId: null };
|
|
({ traceId: obj12[0], parentSpanId: obj12[1] } = obj2);
|
|
const merged4 = Object.assign(spanArguments);
|
|
const tmp33 = _startRootSpan(obj3, scope, obj2.sampled);
|
|
sentrySpan = tmp33;
|
|
if (dsc) {
|
|
tmp(7383).freezeDscOnSpan(tmp33, dsc);
|
|
sentrySpan = tmp33;
|
|
const tmpResult9 = tmp(7383);
|
|
}
|
|
}
|
|
} else {
|
|
const sentryNonRecordingSpan = new tmp(7380).SentryNonRecordingSpan();
|
|
return sentryNonRecordingSpan;
|
|
}
|
|
}
|
|
function _startRootSpan(name) {
|
|
let tmp6;
|
|
let tmp7;
|
|
let obj = require(7374) /* getClient */;
|
|
const client = obj.getClient();
|
|
let options = client;
|
|
if (client) {
|
|
options = client.getOptions();
|
|
}
|
|
if (!options) {
|
|
options = {};
|
|
}
|
|
name = name.name;
|
|
let str = "";
|
|
if (undefined !== name) {
|
|
str = name;
|
|
}
|
|
if (arg1.getScopeData().sdkProcessingMetadata[__SENTRY_SUPPRESS_TRACING__]) {
|
|
const items = [false];
|
|
let sampleSpanResult = items;
|
|
} else {
|
|
obj = { name: null, parentSampled: null, attributes: null, transactionContext: null };
|
|
obj[0] = str;
|
|
obj[1] = arg2;
|
|
obj[2] = name.attributes;
|
|
obj = { name: null, parentSampled: null };
|
|
obj[0] = str;
|
|
obj[1] = arg2;
|
|
obj[3] = obj;
|
|
sampleSpanResult = tmp(7386).sampleSpan(options, obj);
|
|
const tmpResult = tmp(7386);
|
|
}
|
|
[tmp6, tmp7] = _slicedToArray(sampleSpanResult, 2);
|
|
const obj1 = {};
|
|
const merged = Object.assign(name);
|
|
const tmp5 = _slicedToArray(sampleSpanResult, 2);
|
|
const merged1 = Object.assign(name.attributes);
|
|
obj1.attributes = { [require(7362).SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: "custom" };
|
|
obj1.sampled = tmp6;
|
|
const sentrySpan = new tmp(7388).SentrySpan(obj1);
|
|
if (undefined !== tmp7) {
|
|
const attr = sentrySpan.setAttribute(tmp(7362).SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, tmp7);
|
|
}
|
|
if (client) {
|
|
client.emit("spanStart", sentrySpan);
|
|
}
|
|
return sentrySpan;
|
|
}
|
|
const __SENTRY_SUPPRESS_TRACING__ = "__SENTRY_SUPPRESS_TRACING__";
|
|
|
|
export const continueTrace = (arg0, arg1) => {
|
|
let _slicedToArray;
|
|
let dependencyMap;
|
|
const _require = arg1;
|
|
const mainCarrier = _require(7365).getMainCarrier();
|
|
const obj = _require(7365);
|
|
const tmp = _require;
|
|
const asyncContextStrategy = _require(7366).getAsyncContextStrategy(mainCarrier);
|
|
if (asyncContextStrategy.continueTrace) {
|
|
return asyncContextStrategy.continueTrace(arg0, arg1);
|
|
} else {
|
|
({ sentryTrace: dependencyMap, baggage: _slicedToArray } = arg0);
|
|
return tmp(7374).withScope((setPropagationContext) => {
|
|
const result = setPropagationContext.setPropagationContext(callback(outer1_1[9]).propagationContextFromHeaders(closure_1, closure_2));
|
|
return callback();
|
|
});
|
|
}
|
|
const obj2 = _require(7366);
|
|
};
|
|
export const startInactiveSpan = function startInactiveSpan(experimental) {
|
|
let _slicedToArray;
|
|
let parentSpan;
|
|
const _require = experimental;
|
|
let obj = _require(7365);
|
|
let mainCarrier = obj.getMainCarrier();
|
|
let asyncContextStrategy = _require(7366).getAsyncContextStrategy(mainCarrier);
|
|
if (asyncContextStrategy.startInactiveSpan) {
|
|
return asyncContextStrategy.startInactiveSpan(experimental);
|
|
} else {
|
|
obj = { isStandalone: null };
|
|
obj[0] = experimental.experimental || {}.standalone;
|
|
const merged = Object.assign(experimental);
|
|
let tmp10 = obj;
|
|
if (experimental.startTime) {
|
|
obj = {};
|
|
const merged1 = Object.assign(obj);
|
|
obj.startTimestamp = tmp3(7352).spanTimeInputToSeconds(experimental.startTime);
|
|
delete tmp[tmp2];
|
|
tmp10 = obj;
|
|
const tmp3Result = tmp3(7352);
|
|
}
|
|
const dependencyMap = tmp10;
|
|
({ forceTransaction: _slicedToArray, parentSpan } = experimental);
|
|
if (experimental.scope) {
|
|
let fn = (arg0) => experimental(tmp10[1]).withScope(experimental.scope, arg0);
|
|
} else {
|
|
fn = undefined !== parentSpan ? ((arg0) => {
|
|
const experimental = parentSpan;
|
|
const mainCarrier = experimental(arg0[7]).getMainCarrier();
|
|
const obj = experimental(arg0[7]);
|
|
const tmp = parentSpan;
|
|
const tmp2 = experimental;
|
|
const tmp3 = arg0;
|
|
const asyncContextStrategy = experimental(arg0[8]).getAsyncContextStrategy(mainCarrier);
|
|
if (asyncContextStrategy.withActiveSpan) {
|
|
let withActiveSpanResult = asyncContextStrategy.withActiveSpan(tmp, arg0);
|
|
} else {
|
|
withActiveSpanResult = tmp2(tmp3[1]).withScope((arg0) => {
|
|
_null(7369)._setSpanForScope(arg0, _null);
|
|
return dependencyMap(arg0);
|
|
});
|
|
const tmp2Result = tmp2(tmp3[1]);
|
|
}
|
|
return withActiveSpanResult;
|
|
}) : ((arg0) => arg0());
|
|
}
|
|
return fn(() => {
|
|
let obj = experimental(tmp10[1]);
|
|
const currentScope = obj.getCurrentScope();
|
|
const _getSpanForScopeResult = experimental(tmp10[3])._getSpanForScope(currentScope);
|
|
let tmp5;
|
|
if (_getSpanForScopeResult) {
|
|
let tmpResult = tmp(tmp2[1]);
|
|
const client = tmpResult.getClient();
|
|
if (client) {
|
|
let options = client.getOptions();
|
|
} else {
|
|
options = {};
|
|
}
|
|
let rootSpan = _getSpanForScopeResult;
|
|
if (options.parentSpanIsAlwaysRootSpan) {
|
|
tmpResult = tmp(tmp2[5]);
|
|
rootSpan = tmpResult.getRootSpan(_getSpanForScopeResult);
|
|
}
|
|
tmp5 = rootSpan;
|
|
}
|
|
if (experimental.onlyIfParent) {
|
|
if (!tmp5) {
|
|
let sentryNonRecordingSpan = new tmp(tmp2[2]).SentryNonRecordingSpan();
|
|
}
|
|
return sentryNonRecordingSpan;
|
|
}
|
|
obj = { parentSpan: tmp5, spanArguments: tmp10, forceTransaction: closure_2, scope: currentScope };
|
|
sentryNonRecordingSpan = outer1_4(obj);
|
|
});
|
|
}
|
|
const obj2 = _require(7366);
|
|
tmp3 = _require;
|
|
};
|
|
export const startNewTrace = function startNewTrace(arg0) {
|
|
const _require = arg0;
|
|
return _require(7374).withScope((setPropagationContext) => {
|
|
const obj = { traceId: null };
|
|
obj[0] = callback(outer1_1[10]).generateTraceId();
|
|
const result = setPropagationContext.setPropagationContext(obj);
|
|
if (callback(outer1_1[11]).DEBUG_BUILD) {
|
|
const logger = tmp(tmp2[12]).logger;
|
|
const _HermesInternal = HermesInternal;
|
|
logger.info("Starting a new trace with id " + setPropagationContext.getPropagationContext().traceId);
|
|
}
|
|
let c0 = null;
|
|
let closure_1 = c0;
|
|
let tmpResult = tmp(tmp2[7]);
|
|
const mainCarrier = tmpResult.getMainCarrier();
|
|
tmpResult = tmp(tmp2[8]);
|
|
const asyncContextStrategy = tmpResult.getAsyncContextStrategy(mainCarrier);
|
|
if (asyncContextStrategy.withActiveSpan) {
|
|
let withActiveSpanResult = asyncContextStrategy.withActiveSpan(null, c0);
|
|
} else {
|
|
withActiveSpanResult = tmp(tmp2[1]).withScope((arg0) => {
|
|
_null(7369)._setSpanForScope(arg0, _null);
|
|
return dependencyMap(arg0);
|
|
});
|
|
const tmpResult1 = tmp(tmp2[1]);
|
|
}
|
|
return withActiveSpanResult;
|
|
});
|
|
};
|
|
export const startSpan = function startSpan(experimental) {
|
|
let __SENTRY_SUPPRESS_TRACING__;
|
|
let createChildOrRootSpan;
|
|
const _require = experimental;
|
|
const dependencyMap = arg1;
|
|
let obj = _require(7365);
|
|
const mainCarrier = obj.getMainCarrier();
|
|
const asyncContextStrategy = _require(7366).getAsyncContextStrategy(mainCarrier);
|
|
if (asyncContextStrategy.startSpan) {
|
|
return asyncContextStrategy.startSpan(experimental, arg1);
|
|
} else {
|
|
obj = { isStandalone: null };
|
|
obj[0] = experimental.experimental || {}.standalone;
|
|
const merged = Object.assign(experimental);
|
|
let tmp10 = obj;
|
|
if (experimental.startTime) {
|
|
obj = {};
|
|
const merged1 = Object.assign(obj);
|
|
let tmp3Result = tmp3(7352);
|
|
obj.startTimestamp = tmp3Result.spanTimeInputToSeconds(experimental.startTime);
|
|
delete tmp[tmp2];
|
|
tmp10 = obj;
|
|
}
|
|
const _slicedToArray = tmp10;
|
|
({ forceTransaction: __SENTRY_SUPPRESS_TRACING__, parentSpan: createChildOrRootSpan } = experimental);
|
|
tmp3Result = tmp3(7374);
|
|
return tmp3Result.withScope(experimental.scope, () => {
|
|
let closure_0 = closure_4;
|
|
return undefined !== closure_4 ? ((arg0) => {
|
|
let closure_1 = arg0;
|
|
const mainCarrier = callback(outer1_1[7]).getMainCarrier();
|
|
const obj = callback(outer1_1[7]);
|
|
const tmp = callback;
|
|
const tmp2 = callback;
|
|
const tmp3 = outer1_1;
|
|
const asyncContextStrategy = callback(outer1_1[8]).getAsyncContextStrategy(mainCarrier);
|
|
if (asyncContextStrategy.withActiveSpan) {
|
|
let withActiveSpanResult = asyncContextStrategy.withActiveSpan(tmp, arg0);
|
|
} else {
|
|
withActiveSpanResult = tmp2(tmp3[1]).withScope((arg0) => {
|
|
_null(7369)._setSpanForScope(arg0, _null);
|
|
return dependencyMap(arg0);
|
|
});
|
|
const tmp2Result = tmp2(tmp3[1]);
|
|
}
|
|
return withActiveSpanResult;
|
|
}) : ((arg0) => arg0())(() => {
|
|
let obj = callback(outer1_1[1]);
|
|
const currentScope = obj.getCurrentScope();
|
|
const _getSpanForScopeResult = callback(outer1_1[3])._getSpanForScope(currentScope);
|
|
let tmp5;
|
|
if (_getSpanForScopeResult) {
|
|
let tmpResult = tmp(tmp2[1]);
|
|
const client = tmpResult.getClient();
|
|
if (client) {
|
|
let options = client.getOptions();
|
|
} else {
|
|
options = {};
|
|
}
|
|
let rootSpan = _getSpanForScopeResult;
|
|
if (options.parentSpanIsAlwaysRootSpan) {
|
|
tmpResult = tmp(tmp2[5]);
|
|
rootSpan = tmpResult.getRootSpan(_getSpanForScopeResult);
|
|
}
|
|
tmp5 = rootSpan;
|
|
}
|
|
if (sentryNonRecordingSpan.onlyIfParent) {
|
|
if (!tmp5) {
|
|
sentryNonRecordingSpan = new tmp(tmp2[2]).SentryNonRecordingSpan();
|
|
}
|
|
tmp(tmp2[3])._setSpanForScope(currentScope, sentryNonRecordingSpan);
|
|
const tmpResult1 = tmp(tmp2[3]);
|
|
return tmp(tmp2[4]).handleCallbackErrors(() => outer1_1(sentryNonRecordingSpan), () => {
|
|
let obj = sentryNonRecordingSpan(outer2_1[5]);
|
|
const status = obj.spanToJSON(sentryNonRecordingSpan).status;
|
|
const isRecordingResult = sentryNonRecordingSpan.isRecording();
|
|
let tmp4 = !isRecordingResult;
|
|
if (isRecordingResult) {
|
|
let tmp5 = status;
|
|
if (status) {
|
|
tmp5 = "ok" !== status;
|
|
}
|
|
tmp4 = tmp5;
|
|
}
|
|
if (!tmp4) {
|
|
obj = { code: null, message: "internal_error" };
|
|
obj[0] = sentryNonRecordingSpan(outer2_1[6]).SPAN_STATUS_ERROR;
|
|
sentryNonRecordingSpan.setStatus(obj);
|
|
}
|
|
}, () => sentryNonRecordingSpan.end());
|
|
}
|
|
obj = { parentSpan: tmp5, spanArguments: closure_2, forceTransaction: closure_3, scope: currentScope };
|
|
sentryNonRecordingSpan = outer1_4(obj);
|
|
});
|
|
});
|
|
}
|
|
const obj2 = _require(7366);
|
|
};
|
|
export const startSpanManual = function startSpanManual(experimental) {
|
|
let __SENTRY_SUPPRESS_TRACING__;
|
|
let createChildOrRootSpan;
|
|
const _require = experimental;
|
|
const dependencyMap = arg1;
|
|
let obj = _require(7365);
|
|
let mainCarrier = obj.getMainCarrier();
|
|
let asyncContextStrategy = _require(7366).getAsyncContextStrategy(mainCarrier);
|
|
if (asyncContextStrategy.startSpanManual) {
|
|
return asyncContextStrategy.startSpanManual(experimental, arg1);
|
|
} else {
|
|
obj = { isStandalone: null };
|
|
obj[0] = experimental.experimental || {}.standalone;
|
|
const merged = Object.assign(experimental);
|
|
let tmp10 = obj;
|
|
if (experimental.startTime) {
|
|
obj = {};
|
|
const merged1 = Object.assign(obj);
|
|
let tmp3Result = tmp3(7352);
|
|
obj.startTimestamp = tmp3Result.spanTimeInputToSeconds(experimental.startTime);
|
|
delete tmp[tmp2];
|
|
tmp10 = obj;
|
|
}
|
|
const _slicedToArray = tmp10;
|
|
({ forceTransaction: __SENTRY_SUPPRESS_TRACING__, parentSpan: createChildOrRootSpan } = experimental);
|
|
tmp3Result = tmp3(7374);
|
|
return tmp3Result.withScope(experimental.scope, () => {
|
|
let closure_0 = closure_4;
|
|
return undefined !== closure_4 ? ((arg0) => {
|
|
let closure_1 = arg0;
|
|
const mainCarrier = callback(outer1_1[7]).getMainCarrier();
|
|
const obj = callback(outer1_1[7]);
|
|
const tmp = callback;
|
|
const tmp2 = callback;
|
|
const tmp3 = outer1_1;
|
|
const asyncContextStrategy = callback(outer1_1[8]).getAsyncContextStrategy(mainCarrier);
|
|
if (asyncContextStrategy.withActiveSpan) {
|
|
let withActiveSpanResult = asyncContextStrategy.withActiveSpan(tmp, arg0);
|
|
} else {
|
|
withActiveSpanResult = tmp2(tmp3[1]).withScope((arg0) => {
|
|
_null(7369)._setSpanForScope(arg0, _null);
|
|
return dependencyMap(arg0);
|
|
});
|
|
const tmp2Result = tmp2(tmp3[1]);
|
|
}
|
|
return withActiveSpanResult;
|
|
}) : ((arg0) => arg0())(() => {
|
|
function finishAndSetSpan(sentryNonRecordingSpan, finishAndSetSpan) {
|
|
sentryNonRecordingSpan.end();
|
|
}
|
|
let obj = callback(outer1_1[1]);
|
|
const currentScope = obj.getCurrentScope();
|
|
const _getSpanForScopeResult = callback(outer1_1[3])._getSpanForScope(currentScope);
|
|
let tmp5;
|
|
if (_getSpanForScopeResult) {
|
|
let tmpResult = tmp(tmp2[1]);
|
|
const client = tmpResult.getClient();
|
|
if (client) {
|
|
let options = client.getOptions();
|
|
} else {
|
|
options = {};
|
|
}
|
|
let rootSpan = _getSpanForScopeResult;
|
|
if (options.parentSpanIsAlwaysRootSpan) {
|
|
tmpResult = tmp(tmp2[5]);
|
|
rootSpan = tmpResult.getRootSpan(_getSpanForScopeResult);
|
|
}
|
|
tmp5 = rootSpan;
|
|
}
|
|
if (sentryNonRecordingSpan.onlyIfParent) {
|
|
if (!tmp5) {
|
|
sentryNonRecordingSpan = new tmp(tmp2[2]).SentryNonRecordingSpan();
|
|
}
|
|
tmp(tmp2[3])._setSpanForScope(currentScope, sentryNonRecordingSpan);
|
|
const tmpResult1 = tmp(tmp2[3]);
|
|
return tmp(tmp2[4]).handleCallbackErrors(() => finishAndSetSpan(sentryNonRecordingSpan, finishAndSetSpan), () => {
|
|
let obj = sentryNonRecordingSpan(outer2_1[5]);
|
|
const status = obj.spanToJSON(sentryNonRecordingSpan).status;
|
|
const isRecordingResult = sentryNonRecordingSpan.isRecording();
|
|
let tmp4 = !isRecordingResult;
|
|
if (isRecordingResult) {
|
|
let tmp5 = status;
|
|
if (status) {
|
|
tmp5 = "ok" !== status;
|
|
}
|
|
tmp4 = tmp5;
|
|
}
|
|
if (!tmp4) {
|
|
obj = { code: null, message: "internal_error" };
|
|
obj[0] = sentryNonRecordingSpan(outer2_1[6]).SPAN_STATUS_ERROR;
|
|
sentryNonRecordingSpan.setStatus(obj);
|
|
}
|
|
});
|
|
}
|
|
obj = { parentSpan: tmp5, spanArguments: closure_2, forceTransaction: closure_3, scope: currentScope };
|
|
sentryNonRecordingSpan = outer1_4(obj);
|
|
});
|
|
});
|
|
}
|
|
const obj2 = _require(7366);
|
|
};
|
|
export const suppressTracing = function suppressTracing(arg0) {
|
|
const _require = arg0;
|
|
const mainCarrier = _require(7365).getMainCarrier();
|
|
const obj = _require(7365);
|
|
const tmp = _require;
|
|
const asyncContextStrategy = _require(7366).getAsyncContextStrategy(mainCarrier);
|
|
if (asyncContextStrategy.suppressTracing) {
|
|
let suppressTracingResult = asyncContextStrategy.suppressTracing(arg0);
|
|
} else {
|
|
suppressTracingResult = tmp(7374).withScope((setSDKProcessingMetadata) => {
|
|
const result = setSDKProcessingMetadata.setSDKProcessingMetadata({ [outer1_3]: true });
|
|
return callback();
|
|
});
|
|
const tmpResult = tmp(7374);
|
|
}
|
|
return suppressTracingResult;
|
|
};
|
|
export const withActiveSpan = function withActiveSpan(arg0, arg1) {
|
|
const _require = arg0;
|
|
const dependencyMap = arg1;
|
|
const mainCarrier = _require(7365).getMainCarrier();
|
|
const obj = _require(7365);
|
|
const tmp = _require;
|
|
const asyncContextStrategy = _require(7366).getAsyncContextStrategy(mainCarrier);
|
|
if (asyncContextStrategy.withActiveSpan) {
|
|
let withActiveSpanResult = asyncContextStrategy.withActiveSpan(arg0, arg1);
|
|
} else {
|
|
withActiveSpanResult = tmp(7374).withScope((arg0) => {
|
|
_null(7369)._setSpanForScope(arg0, _null);
|
|
return dependencyMap(arg0);
|
|
});
|
|
const tmpResult = tmp(7374);
|
|
}
|
|
return withActiveSpanResult;
|
|
};
|