This commit is contained in:
William FH
2024-04-25 16:51:42 -07:00
committed by William Fu-Hinthorn
parent 082a2be3da
commit 92bf8493d4

View File

@@ -147,6 +147,8 @@ def _get_trace_callbacks(
def _tracing_v2_is_enabled() -> bool:
return (
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 get_run_tree_context() is not None
)