langsmith
Version:
Client library to connect to the LangSmith Observability and Evaluation Platform.
14 lines (13 loc) • 512 B
JavaScript
;
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)();
}