Skip to content

Commit eb93f41

Browse files
core[patch]: Support LANGSMITH_TRACING env var (#5587)
* [Core:Tracing] accept LANGSMITH_TRACING * Rework check --------- Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
1 parent 95ba4a3 commit eb93f41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎langchain-core/src/callbacks/manager.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,8 @@ export class CallbackManager
984984
getEnvironmentVariable("LANGCHAIN_VERBOSE") === "true" ||
985985
options?.verbose;
986986
const tracingV2Enabled =
987-
getEnvironmentVariable("LANGCHAIN_TRACING_V2") === "true";
987+
getEnvironmentVariable("LANGCHAIN_TRACING_V2") === "true" ||
988+
getEnvironmentVariable("LANGSMITH_TRACING") === "true";
988989

989990
const tracingEnabled =
990991
tracingV2Enabled ||

0 commit comments

Comments
 (0)