Skip to main content

Environment variables

Weave provides a set of environment variables to configure and optimize its behavior. You can set these variables in your shell or within scripts to control specific functionality.

# Example of setting environment variables in the shell
WEAVE_PARALLELISM=10 # Controls the number of parallel workers
WEAVE_PRINT_CALL_LINK=false # Disables call link output
# Example of setting environment variables in Python
import os

os.environ["WEAVE_PARALLELISM"] = "10"
os.environ["WEAVE_PRINT_CALL_LINK"] = "false"

Environment variables reference

Variable NameDescription
WEAVE_CAPTURE_CODEDisable code capture for weave.op if set to false.
WEAVE_DEBUG_HTTPIf set to 1, turns on HTTP request and response logging for debugging.
WEAVE_DISABLEDIf set to true, all tracing to Weave is disabled.
WEAVE_PARALLELISMIn evaluations, the number of examples to evaluate in parallel. 1 runs examples sequentially. Default value is 20.
WEAVE_PRINT_CALL_LINKIf set to false, call URL printing is suppressed. Default value is false.
WEAVE_TRACE_LANGCHAINWhen set to false, explicitly disable global tracing for LangChain.