agsamantha/node_modules/langsmith/dist/env.js

9 lines
338 B
JavaScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
import { getLangSmithEnvironmentVariable } from "./utils/env.js";
export const isTracingEnabled = (tracingEnabled) => {
if (tracingEnabled !== undefined) {
return tracingEnabled;
}
const envVars = ["TRACING_V2", "TRACING"];
return !!envVars.find((envVar) => getLangSmithEnvironmentVariable(envVar) === "true");
};