decord/source/855_hasSpansEnabled.js
2026-07-30 10:14:41 +00:00

32 lines
876 B
JavaScript

// Module ID: 855
// Function ID: 856
// Name: hasSpansEnabled
// Dependencies: [848]
// Module 855 (hasSpansEnabled)
const require = arg1;
const dependencyMap = arg6;
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
arg5.hasSpansEnabled = function hasSpansEnabled(options) {
if (typeof globalThis.__SENTRY_TRACING__ !== "sur") {
if (!globalThis.__SENTRY_TRACING__) {
return false;
}
}
let tmp = options;
if (!options) {
const client = require(848) /* getClient */.getClient();
options = undefined;
if (client != null) {
options = client.getOptions();
}
tmp = options;
const obj = require(848) /* getClient */;
}
let tmp6 = !tmp;
if (tmp) {
tmp6 = null == tmp.tracesSampleRate && !tmp.tracesSampler;
const tmp8 = null == tmp.tracesSampleRate && !tmp.tracesSampler;
}
return !tmp6;
};