deerflow2/backend/src/config
Willem Jiang 96dbee00e3
fix(tracing): support LANGCHAIN_* env fallback for LangSmith config (#1065)
* fix(tracing): support LANGCHAIN_* env fallback for LangSmith config

- add backward-compatible env parsing in tracing_config.py
- support fallback keys:
   LANGCHAIN_TRACING_V2 / LANGCHAIN_TRACING
   LANGCHAIN_API_KEY
   LANGCHAIN_PROJECT
   LANGCHAIN_ENDPOINT
- keep LANGSMITH_* as preferred source when both are present
- add regression tests in test_tracing_config.py

* fix(tracing): correct LANGSMITH_* precedence over LANGCHAIN_* for enabled flag (#1067)

* Initial plan

* fix(tracing): use first-present-wins logic for enabled flag, add precedence docs and test

Co-authored-by: WillemJiang <219644+WillemJiang@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: WillemJiang <219644+WillemJiang@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
2026-03-11 10:26:56 +08:00
..
__init__.py Refactor base paths with centralized path management (#901) 2026-02-25 21:30:33 +08:00
agents_config.py feat(agent):Supports custom agent and chat experience with refactoring (#957) 2026-03-03 21:32:01 +08:00
app_config.py Support langgraph checkpointer (#1005) 2026-03-07 21:07:21 +08:00
checkpointer_config.py Support langgraph checkpointer (#1005) 2026-03-07 21:07:21 +08:00
extensions_config.py chore(docker): Refactor sandbox state management and improve Docker integration (#1068) 2026-03-11 10:03:01 +08:00
memory_config.py Refactor base paths with centralized path management (#901) 2026-02-25 21:30:33 +08:00
model_config.py feat: add thinking settings to compatible anthropic api (#1017) 2026-03-08 20:18:21 +08:00
paths.py chore(docker): Refactor sandbox state management and improve Docker integration (#1068) 2026-03-11 10:03:01 +08:00
sandbox_config.py chore(docker): Refactor sandbox state management and improve Docker integration (#1068) 2026-03-11 10:03:01 +08:00
skills_config.py feat: add skills system for specialized agent workflows (#6) 2026-01-16 14:44:51 +08:00
subagents_config.py feat(subagents): make subagent timeout configurable via config.yaml (#897) 2026-02-25 08:39:29 +08:00
summarization_config.py feat: implement summarization (#14) 2026-01-19 16:17:31 +08:00
title_config.py feat: add AIO sandbox provider and auto title generation (#1) 2026-01-14 23:29:18 +08:00
tool_config.py feat: add config modules 2026-01-14 07:15:58 +08:00
tracing_config.py fix(tracing): support LANGCHAIN_* env fallback for LangSmith config (#1065) 2026-03-11 10:26:56 +08:00