SDK
Configuration reference
Environment variables
| Variable | Used by | Description |
|---|---|---|
EVIGAUGE_API_KEY | SDK, CLI | Workspace API key |
EVIGAUGE_TRANSPORT | SDK | collector or direct; the transport= argument wins |
EVIGAUGE_INGEST_URL | TS bootstrap | Ingest base URL |
EVIGAUGE_PROJECT_ID | TS bootstrap | Project name → service.name |
EVIGAUGE_ORG_ID / EVIGAUGE_WORKSPACE_ID | your own bootstrap | Passed into init() |
CREWAI_DISABLE_TELEMETRY | CrewAI adapter | Set to true before importing CrewAI |
PXCORE_MODEL | pxcore | Active model for calibration gating |
EVIGAUGE_ORG_IDandEVIGAUGE_WORKSPACE_IDare read by your bootstrap code, not byinit()itself —init()takes them as explicit arguments.
Files the SDK reads or writes
| Path | Purpose |
|---|---|
.evigauge-wal/spans.jsonl | Write-ahead log; replayed on next init() |
.evigauge/shipcheck.yml | Ship Check policy |
.evigauge/agentmap.lock | Committed agent-topology lockfile from evigauge audit |
Add .evigauge-wal/ to .gitignore. Commit .evigauge/agentmap.lock — its whole
value is being diffable in review.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
init() raises at startup | Bad collector endpoint or WAL path | Fix the config, or set fail_open=True |
| No spans, no errors | Protobuf OTLP | Use the http/json exporter; collectors need encoding: json |
202 on ingest but no traces | Spans dead-lettering | Check the four rules and ingestion health |
| A whole span vanishes | Nested object in evigauge.decision / evigauge.sources | json.dumps them — they are JSON strings |
| A whole span vanishes | Undocumented evigauge.* key | The schema is extra="forbid"; remove it |
| Prompts page has thousands of one-call rows | query_text joined without role boundaries | Use renderPrompt() / the role:\ncontent join |
PermissionError (WinError 32) on Windows | WAL renamed with an open handle | Fixed in current versions — upgrade evigauge-trace |
| Spans lost on exit | Process died before the batch flushed | Call force_flush() before exit |
No end_user data on the dashboard | evigauge.end_user never set | Pass end_user= or call record_end_user() |
| Empty engine panels, traces present | Engine off, or no LLM credential | Check engine settings and LLM credentials |
| No prompt/completion text stored | capture_text is off (the default) | See capture text |
See also
- REST API Reference — all 100 endpoints (93 Read API + 9 Ingest, 2 shared).
- MCP & Claude Code Plugin — the
pxcoreMCP server and the/evigauge:*Claude Code skills.