decord/source/__polyfill/12xxx/module_12924.js
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

39 lines
902 B
JavaScript

// Module ID: 12924
// Function ID: 12925
// Dependencies: [12919]
// Exports: hasTracingEnabled
// Module 12924
import _mod12919 from "module_12919" /* 12919 */;
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 = _mod12919.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;
};