Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
34 lines
846 B
JavaScript
34 lines
846 B
JavaScript
// Module ID: 720
|
|
// Function ID: 721
|
|
// Dependencies: [713]
|
|
// Exports: hasSpansEnabled
|
|
|
|
// Module 720
|
|
import _mod713 from "module_713" /* 713 */;
|
|
|
|
require = arg1;
|
|
const dependencyMap = arg6;
|
|
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
|
|
|
|
export const hasSpansEnabled = function hasSpansEnabled(options) {
|
|
if (typeof globalThis.__SENTRY_TRACING__ === "boolean") {
|
|
if (!globalThis.__SENTRY_TRACING__) {
|
|
return false;
|
|
}
|
|
}
|
|
let tmp = options;
|
|
if (!options) {
|
|
const client = _mod713.getClient();
|
|
options = undefined;
|
|
if (client != null) {
|
|
options = client.getOptions();
|
|
}
|
|
tmp = options;
|
|
}
|
|
let tmp6 = !tmp;
|
|
if (tmp) {
|
|
tmp6 = null == tmp.tracesSampleRate && !tmp.tracesSampler;
|
|
const tmp8 = null == tmp.tracesSampleRate && !tmp.tracesSampler;
|
|
}
|
|
return !tmp6;
|
|
};
|