docs: add LangSmith tracing configuration and documentation (#1414)
Some checks are pending
Unit Tests / backend-unit-tests (push) Waiting to run
Lint Check / lint (push) Waiting to run
Lint Check / lint-frontend (push) Waiting to run

Add LangSmith tracing setup instructions across the project:
- .env.example: add LANGSMITH_* env vars (commented out)
- README.md + translations (zh/ja/fr/ru): add LangSmith Tracing section
  under Advanced with setup steps and env var reference
- backend/README.md: add detailed LangSmith Tracing section with setup,
  env var table, how-it-works explanation, and Docker notes
- docker-compose.yaml: update LANGCHAIN_TRACING_V2 to LANGSMITH_TRACING
  for naming consistency with the rest of the project

Made-with: Cursor

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
This commit is contained in:
yangzheli 2026-03-27 14:17:45 +08:00 committed by GitHub
parent 99965057c1
commit a4e4bb21e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 111 additions and 4 deletions

View file

@ -16,8 +16,8 @@
# DEER_FLOW_REPO_ROOT — repo root (used for skills host path in DooD)
# BETTER_AUTH_SECRET — required for frontend auth/session security
#
# LangSmith tracing is disabled by default (LANGCHAIN_TRACING_V2=false).
# Set LANGCHAIN_TRACING_V2=true and LANGSMITH_API_KEY in .env to enable it.
# LangSmith tracing is disabled by default (LANGSMITH_TRACING=false).
# Set LANGSMITH_TRACING=true and LANGSMITH_API_KEY in .env to enable it.
#
# Access: http://localhost:${PORT:-2026}
@ -144,8 +144,8 @@ services:
- DEER_FLOW_HOST_SKILLS_PATH=${DEER_FLOW_REPO_ROOT}/skills
- DEER_FLOW_SANDBOX_HOST=host.docker.internal
# Disable LangSmith tracing — LANGSMITH_API_KEY is not required.
# Set LANGCHAIN_TRACING_V2=true and LANGSMITH_API_KEY in .env to enable.
- LANGCHAIN_TRACING_V2=${LANGCHAIN_TRACING_V2:-false}
# Set LANGSMITH_TRACING=true and LANGSMITH_API_KEY in .env to enable.
- LANGSMITH_TRACING=${LANGSMITH_TRACING:-false}
env_file:
- ../.env
extra_hosts: