diff --git a/libs/core/langchain_core/tracers/context.py b/libs/core/langchain_core/tracers/context.py index 990049ee369..1db9530016f 100644 --- a/libs/core/langchain_core/tracers/context.py +++ b/libs/core/langchain_core/tracers/context.py @@ -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 )