core,langchain,community[patch]: allow langsmith 0.2 (#28598)

This commit is contained in:
Bagatur
2024-12-10 10:50:58 -08:00
committed by GitHub
parent bc4dc7f4b1
commit e6a62d8422
16 changed files with 588 additions and 426 deletions

View File

@@ -6,6 +6,7 @@ from contextvars import ContextVar
from typing import (
TYPE_CHECKING,
Any,
Literal,
Optional,
Union,
cast,
@@ -141,7 +142,7 @@ def _get_trace_callbacks(
return cb
def _tracing_v2_is_enabled() -> bool:
def _tracing_v2_is_enabled() -> Union[bool, Literal["local"]]:
if tracing_v2_callback_var.get() is not None:
return True
return ls_utils.tracing_is_enabled()