DEVELOPER DOCS

SDK

Configuration reference

On this page

Environment variables

VariableUsed byDescription
EVIGAUGE_API_KEYSDK, CLIWorkspace API key
EVIGAUGE_TRANSPORTSDKcollector or direct; the transport= argument wins
EVIGAUGE_INGEST_URLTS bootstrapIngest base URL
EVIGAUGE_PROJECT_IDTS bootstrapProject name → service.name
EVIGAUGE_ORG_ID / EVIGAUGE_WORKSPACE_IDyour own bootstrapPassed into init()
CREWAI_DISABLE_TELEMETRYCrewAI adapterSet to true before importing CrewAI
PXCORE_MODELpxcoreActive model for calibration gating

EVIGAUGE_ORG_ID and EVIGAUGE_WORKSPACE_ID are read by your bootstrap code, not by init() itself — init() takes them as explicit arguments.

Files the SDK reads or writes

PathPurpose
.evigauge-wal/spans.jsonlWrite-ahead log; replayed on next init()
.evigauge/shipcheck.ymlShip Check policy
.evigauge/agentmap.lockCommitted agent-topology lockfile from evigauge audit

Add .evigauge-wal/ to .gitignore. Commit .evigauge/agentmap.lock — its whole value is being diffable in review.


Troubleshooting

SymptomCauseFix
init() raises at startupBad collector endpoint or WAL pathFix the config, or set fail_open=True
No spans, no errorsProtobuf OTLPUse the http/json exporter; collectors need encoding: json
202 on ingest but no tracesSpans dead-letteringCheck the four rules and ingestion health
A whole span vanishesNested object in evigauge.decision / evigauge.sourcesjson.dumps them — they are JSON strings
A whole span vanishesUndocumented evigauge.* keyThe schema is extra="forbid"; remove it
Prompts page has thousands of one-call rowsquery_text joined without role boundariesUse renderPrompt() / the role:\ncontent join
PermissionError (WinError 32) on WindowsWAL renamed with an open handleFixed in current versions — upgrade evigauge-trace
Spans lost on exitProcess died before the batch flushedCall force_flush() before exit
No end_user data on the dashboardevigauge.end_user never setPass end_user= or call record_end_user()
Empty engine panels, traces presentEngine off, or no LLM credentialCheck engine settings and LLM credentials
No prompt/completion text storedcapture_text is off (the default)See capture text

See also