Environment variables and configuration parameters for the ZeroEval tracer
Variable | Type | Default | Description |
---|---|---|---|
ZEROEVAL_API_KEY | string | "" | API key for authentication |
ZEROEVAL_API_URL | string | "https://api.zeroeval.com" | API endpoint URL |
ZEROEVAL_WORKSPACE_NAME | string | "Personal Workspace" | Workspace name |
ZEROEVAL_SESSION_ID | string | auto-generated | Session ID for grouping traces |
ZEROEVAL_SESSION_NAME | string | "" | Human-readable session name |
ZEROEVAL_SAMPLING_RATE | float | "1.0" | Sampling rate (0.0-1.0) |
ZEROEVAL_DISABLED_INTEGRATIONS | string | "" | Comma-separated integrations to disable |
ZEROEVAL_DEBUG | boolean | "false" | Enable debug logging |
ze.init()
- overrides environment variables.
Parameter | Type | Default | Description |
---|---|---|---|
api_key | string | None | API key for authentication |
workspace_name | string | "Personal Workspace" | Workspace name |
debug | boolean | False | Enable debug logging with colors |
api_url | string | "https://api.zeroeval.com" | API endpoint URL |
disabled_integrations | list[str] | None | Integrations to disable |
enabled_integrations | list[str] | None | Only enable these integrations |
setup_otlp | boolean | True | Setup OpenTelemetry OTLP export |
service_name | string | "zeroeval-app" | OTLP service name |
tags | dict[str, str] | None | Global tags for all spans |
sampling_rate | float | None | Sampling rate (0.0-1.0) |
ze.init()
.
ze.tracer.configure()
.
Parameter | Type | Default | Description |
---|---|---|---|
flush_interval | float | 1.0 | Flush frequency in seconds |
max_spans | int | 20 | Buffer size before forced flush |
collect_code_details | boolean | True | Capture code details in spans |
integrations | dict[str, bool] | {} | Enable/disable specific integrations |
sampling_rate | float | None | Sampling rate (0.0-1.0) |
ze.tracer.configure()
anytime after initialization.
Integration | User-Friendly Name | Auto-Instruments |
---|---|---|
OpenAIIntegration | "openai" | OpenAI client calls |
GeminiIntegration | "gemini" | Google Gemini calls |
LangChainIntegration | "langchain" | LangChain components |
LangGraphIntegration | "langgraph" | LangGraph workflows |
HttpxIntegration | "httpx" | HTTPX requests |
VocodeIntegration | "vocode" | Vocode voice SDK |
ZEROEVAL_DISABLED_INTEGRATIONS="langchain,langgraph"
disabled_integrations=["langchain"]
or enabled_integrations=["openai"]
ze.tracer.configure(integrations={"langchain": False})