Enabling the SDK
Varianz is opt-in: the SDK is disabled by default. A service that carries the SDK but is given no configuration stays dormant — VPoints pass through, nothing registers, no native library is touched, and every SDK call succeeds as a no-op. Resolution order (first match wins):VARIANZ_ENABLEDenvironment variable — wins unconditionally when set.enabledkey in a config file —VARIANZ_CONFIG=<path>if set, else./varianz.toml, else~/.varianz/sdk.toml. First existing file wins; files are not merged.- Built-in default: disabled.
true, 1, on, yes, enabled; false = false, 0, off, no, disabled. An unparseable value or unreadable config resolves to disabled with a single warning — the same fail-open posture as the rest of Varianz: when anything is wrong, VPoints simply run your original code.
The config file schema is a single top-level key; unknown keys are ignored:
The toggle behaves identically in every SDK. For Java/Kotlin, interception additionally requires the
varianz-agent to be attached (Gradle weave, Maven -Dvarianz.skipAgent=true) — see Java SDK.Registry endpoint
The endpoint is normally passed in code (Varianz("http://..."), initRegistry({ endpoint }), varianz.WithEndpoint(...), RegistryBinding.init(...)). Environment overrides where supported:
TLS
SDK clients always verify TLS against the platform trust store by default. There is no code-side override for plaintext — only the environment:
Every SDK client (Python, TypeScript, Go, JVM) reads these identically. Rotating a CA file on disk doesn’t affect established connections — reconnect or restart the client.
Environment tags
Stages can be scoped to deployment environments. Clients advertise theirs via SDK options (for exampleinitRegistry({ region, cluster, tags })) or environment variables:
Git provenance
VPoints record their code location (file, line, git commit) for tooling. Detection reads the local.git; production artifacts usually run without one, so set these in your build/deploy pipeline:
Values merge field-by-field on top of whatever was auto-detected.
Build-time switches
JVM equivalent for the processor:
-Avarianz.proc.enabled=false.
