deerflow2/backend/src
CHANGXUBO 1880a6e287 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 <noreply@anthropic.com>

* Update backend/src/config/tracing_config.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update backend/src/models/factory.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-21 16:41:34 +08:00
..
agents feat: add LangSmith tracing integration (#878) 2026-02-21 16:41:34 +08:00
community Adds Kubernetes sandbox provisioner support (#35) 2026-02-12 11:02:09 +08:00
config feat: add LangSmith tracing integration (#878) 2026-02-21 16:41:34 +08:00
gateway Adds Kubernetes sandbox provisioner support (#35) 2026-02-12 11:02:09 +08:00
mcp fix: ensure MCP and skills config changes are immediately reflected 2026-01-25 22:40:09 +08:00
models feat: add LangSmith tracing integration (#878) 2026-02-21 16:41:34 +08:00
reflection chore: use ruff to lint and auto-format 2026-01-14 09:08:20 +08:00
sandbox Adds Kubernetes sandbox provisioner support (#35) 2026-02-12 11:02:09 +08:00
skills fix: ensure MCP and skills config changes are immediately reflected 2026-01-25 22:40:09 +08:00
subagents feat: make max concurrent subagents configurable via runtime config 2026-02-11 11:51:11 +08:00
tools feat: enable skills support for subagents 2026-02-11 11:04:50 +08:00
utils feat: add thread-safety and graceful shutdown to AioSandboxProvider (#7) 2026-01-16 22:28:19 +08:00
__init__.py chore: add an empty __init__.py 2026-01-14 07:16:27 +08:00