fix: remove LANGSMITH_TRACING override that ignores .env value (#1640)

The `environment` section in docker-compose.yaml set
`LANGSMITH_TRACING=${LANGSMITH_TRACING:-false}`, which always resolves
to `false` because Docker Compose evaluates `${}` substitutions from
the host shell environment, not from `env_file`.

Since `environment` entries take precedence over `env_file`, setting
`LANGSMITH_TRACING=true` in `.env` had no effect — tracing stayed
disabled despite following the documented instructions.

Remove the explicit `LANGSMITH_TRACING` from `environment` so the
value from `.env` (loaded via `env_file`) is used as intended.
This commit is contained in:
ZHANG Ning 2026-03-31 09:42:33 +08:00 committed by GitHub
parent 9e3d484858
commit 64e0f5329a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -149,9 +149,7 @@ services:
- DEER_FLOW_HOST_BASE_DIR=${DEER_FLOW_HOME}
- 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 LANGSMITH_TRACING=true and LANGSMITH_API_KEY in .env to enable.
- LANGSMITH_TRACING=${LANGSMITH_TRACING:-false}
# LangSmith tracing: set LANGSMITH_TRACING=true and LANGSMITH_API_KEY in .env to enable.
env_file:
- ../.env
extra_hosts: