Skip to content

Commit

Permalink
core[patch]: Support LANGSMITH_TRACING env var (#5587)
Browse files Browse the repository at this point in the history
* [Core:Tracing] accept LANGSMITH_TRACING

* Rework check

---------

Co-authored-by: jacoblee93 <[email protected]>
  • Loading branch information
hinthornw and jacoblee93 authored May 29, 2024
1 parent 95ba4a3 commit eb93f41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion langchain-core/src/callbacks/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,8 @@ export class CallbackManager
getEnvironmentVariable("LANGCHAIN_VERBOSE") === "true" ||
options?.verbose;
const tracingV2Enabled =
getEnvironmentVariable("LANGCHAIN_TRACING_V2") === "true";
getEnvironmentVariable("LANGCHAIN_TRACING_V2") === "true" ||
getEnvironmentVariable("LANGSMITH_TRACING") === "true";

const tracingEnabled =
tracingV2Enabled ||
Expand Down

0 comments on commit eb93f41

Please sign in to comment.