"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isTracingEnabled = isTracingEnabled;
const env_js_1 = require("../env.cjs");
const traceable_js_1 = require("../singletons/traceable.cjs");
/**
 * Check if tracing is enabled for the current run tree or environment.
 *
 * @returns `true` if tracing is enabled, `false` otherwise.
 */
function isTracingEnabled() {
    return (0, traceable_js_1.getCurrentRunTree)(true)?.tracingEnabled ?? (0, env_js_1.isEnvTracingEnabled)();
}
