mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-05 20:58:25 +00:00
Use lstv2 (#20747)
This commit is contained in:
parent
891ae37437
commit
4c437ebb9c
@ -147,6 +147,8 @@ def _get_trace_callbacks(
|
|||||||
def _tracing_v2_is_enabled() -> bool:
|
def _tracing_v2_is_enabled() -> bool:
|
||||||
return (
|
return (
|
||||||
env_var_is_set("LANGCHAIN_TRACING_V2")
|
env_var_is_set("LANGCHAIN_TRACING_V2")
|
||||||
|
or env_var_is_set("LANGSMITH_TRACING")
|
||||||
|
or env_var_is_set("LANGSMITH_TRACING_V2")
|
||||||
or tracing_v2_callback_var.get() is not None
|
or tracing_v2_callback_var.get() is not None
|
||||||
or get_run_tree_context() is not None
|
or get_run_tree_context() is not None
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user