Resolved configuration. Built once at application boot from config :metrixwire, ... merged with ENV fallbacks (METRIXWIRE_KEY, METRIXWIRE_ENDPOINT,
METRIXWIRE_ENABLED). Nothing here throws — bad input degrades to a sensible
default so instrumentation never breaks the host app.
Held in :persistent_term for lock-free, low-cost reads from the hot path (every
telemetry event reads config).
Summary
Functions
Whether the SDK is enabled.
The current config struct (default if not yet loaded).
Build the config from application env + ENV fallbacks and store it. Idempotent — called once at boot. Returns the built struct.
Accept a base URL too: append /ingest when missing.
Types
Functions
Whether the SDK is enabled.
The current config struct (default if not yet loaded).
Build the config from application env + ENV fallbacks and store it. Idempotent — called once at boot. Returns the built struct.
Accept a base URL too: append /ingest when missing.