agsamantha/node_modules/langsmith/dist/env.cjs

13 lines
481 B
JavaScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isTracingEnabled = void 0;
const env_js_1 = require("./utils/env.cjs");
const isTracingEnabled = (tracingEnabled) => {
if (tracingEnabled !== undefined) {
return tracingEnabled;
}
const envVars = ["TRACING_V2", "TRACING"];
return !!envVars.find((envVar) => (0, env_js_1.getLangSmithEnvironmentVariable)(envVar) === "true");
};
exports.isTracingEnabled = isTracingEnabled;