decord/source/6400_hasTracingEnabled.js
2026-07-29 08:29:29 +00:00

36 lines
888 B
JavaScript

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