mirror of
https://github.com/hwchase17/langchain.git
synced 2026-04-25 01:16:55 +00:00
core[patch]: add v1 tracer backwards compat
This commit is contained in:
@@ -208,3 +208,6 @@ def register_configure_hook(
|
||||
|
||||
|
||||
register_configure_hook(run_collector_var, False)
|
||||
|
||||
# Legacy variable, kept for backwards compatibility.
|
||||
tracing_enabled = None
|
||||
|
||||
3
libs/core/langchain_core/tracers/langchain_v1.py
Normal file
3
libs/core/langchain_core/tracers/langchain_v1.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# Legacy variable, kept for backwards compatibility.
|
||||
get_headers = None
|
||||
LangChainTracerV1 = None
|
||||
@@ -35,6 +35,29 @@ class Run(BaseRunV2):
|
||||
|
||||
Run.update_forward_refs()
|
||||
|
||||
|
||||
# Legacy variables, kept for backwards compatibility.
|
||||
BaseRun = None
|
||||
ChainRun = None
|
||||
LLMRun = None
|
||||
RunTypeEnum = None
|
||||
ToolRun = None
|
||||
TracerSession = None
|
||||
TracerSessionBase = None
|
||||
TracerSessionV1 = None
|
||||
TracerSessionV1Base = None
|
||||
TracerSessionV1Create = None
|
||||
|
||||
__all__ = [
|
||||
"BaseRun",
|
||||
"ChainRun",
|
||||
"LLMRun",
|
||||
"Run",
|
||||
"RunTypeEnum",
|
||||
"ToolRun",
|
||||
"TracerSession",
|
||||
"TracerSessionBase",
|
||||
"TracerSessionV1",
|
||||
"TracerSessionV1Base",
|
||||
"TracerSessionV1Create",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user