decord/source/7808_hasTracingEnabled.js
2026-08-24 06:08:38 +00:00

38 lines
902 B
JavaScript

// Module ID: 7808
// Function ID: 7809
// Name: hasTracingEnabled
// Dependencies: [7803]
// Module 7808 (hasTracingEnabled)
import getClient from "getClient" /* 7803 */;
require = arg1;
const dependencyMap = arg6;
arg5.hasTracingEnabled = function hasTracingEnabled(tracesSampler) {
if (typeof globalThis.__SENTRY_TRACING__ === "boolean") {
if (!globalThis.__SENTRY_TRACING__) {
return false;
}
}
let tmp = tracesSampler;
const client = getClient.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;
};