decord/source/855_hasSpansEnabled.js

33 lines
880 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 855
// Function ID: 856
2026-07-20 16:05:17 +00:00
// Name: hasSpansEnabled
2026-07-29 08:29:29 +00:00
// Dependencies: [848]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 855 (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) {
2026-08-04 21:03:28 +00:00
if (typeof globalThis.__SENTRY_TRACING__ === "boolean") {
2026-07-20 16:05:17 +00:00
if (!globalThis.__SENTRY_TRACING__) {
return false;
}
}
2026-07-29 08:29:29 +00:00
let tmp = options;
if (!options) {
const client = require(848) /* getClient */.getClient();
2026-07-20 16:05:17 +00:00
options = undefined;
2026-07-29 08:29:29 +00:00
if (client != null) {
2026-07-20 16:05:17 +00:00
options = client.getOptions();
}
tmp = options;
2026-07-29 08:29:29 +00:00
const obj = require(848) /* getClient */;
2026-07-20 16:05:17 +00:00
}
let tmp6 = !tmp;
2026-07-29 08:29:29 +00:00
if (tmp) {
2026-07-20 16:05:17 +00:00
tmp6 = null == tmp.tracesSampleRate && !tmp.tracesSampler;
const tmp8 = null == tmp.tracesSampleRate && !tmp.tracesSampler;
}
return !tmp6;
};