Files
deer-flow/backend/src
85af540076 feat: add LangSmith tracing integration (#878)
* feat: add LangSmith tracing integration

Add optional LangSmith tracing support that can be enabled via environment
variables (LANGSMITH_TRACING, LANGSMITH_API_KEY, LANGSMITH_PROJECT,
LANGSMITH_ENDPOINT). When enabled, a LangChainTracer callback is attached
to chat models and run metadata is injected for trace tagging.

Co-Authored-By: Claude <[email protected]>

* Update backend/src/config/tracing_config.py

Co-authored-by: Copilot <[email protected]>

* Update backend/src/agents/lead_agent/agent.py

Co-authored-by: Copilot <[email protected]>

* Update backend/src/agents/lead_agent/agent.py

Co-authored-by: Copilot <[email protected]>

* Update backend/src/models/factory.py

Co-authored-by: Copilot <[email protected]>

* Add threading lock to ensure thread-safe access to tracing configuration

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: Willem Jiang <[email protected]>
Co-authored-by: Copilot <[email protected]>
2026-02-21 16:41:34 +08:00
..
2026-01-14 07:16:27 +08:00