decord/source/831_hasSpansEnabled.js

33 lines
891 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 831
2026-07-24 07:16:23 +00:00
// Function ID: 9263
2026-07-20 16:05:17 +00:00
// Name: hasSpansEnabled
2026-07-23 10:11:24 +00:00
// Dependencies: [825]
2026-07-20 16:05:17 +00:00
// Module 831 (hasSpansEnabled)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
arg5.hasSpansEnabled = function hasSpansEnabled(options) {
let tmp = options;
if ("boolean" === typeof globalThis.__SENTRY_TRACING__) {
if (!globalThis.__SENTRY_TRACING__) {
return false;
}
}
if (!tmp) {
options = undefined;
2026-07-23 10:11:24 +00:00
const client = require(825) /* getCurrentScope */.getClient();
2026-07-20 16:05:17 +00:00
if (null != client) {
options = client.getOptions();
}
tmp = options;
2026-07-23 10:11:24 +00:00
const obj = require(825) /* getCurrentScope */;
2026-07-20 16:05:17 +00:00
}
let tmp6 = !tmp;
if (!tmp6) {
tmp6 = null == tmp.tracesSampleRate && !tmp.tracesSampler;
const tmp8 = null == tmp.tracesSampleRate && !tmp.tracesSampler;
}
return !tmp6;
};