decord/source/__polyfill/12xxx/module_12958.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

39 lines
902 B
JavaScript

// Module ID: 12958
// Function ID: 12959
// Dependencies: [12953]
// Exports: hasTracingEnabled
// Module 12958
import _mod12953 from "module_12953" /* 12953 */;
require = arg1;
const dependencyMap = arg6;
export const hasTracingEnabled = function hasTracingEnabled(tracesSampler) {
if (typeof globalThis.__SENTRY_TRACING__ === "boolean") {
if (!globalThis.__SENTRY_TRACING__) {
return false;
}
}
let tmp = tracesSampler;
const client = _mod12953.getClient();
if (!tracesSampler) {
let options = client;
if (client) {
options = client.getOptions();
}
tmp = options;
}
let tmp3 = tmp;
if (tmp3) {
let enableTracing = tmp.enableTracing;
if (!enableTracing) {
enableTracing = "tracesSampleRate" in tmp;
}
if (!enableTracing) {
enableTracing = "tracesSampler" in tmp;
}
tmp3 = enableTracing;
}
return tmp3;
};