Applies defaults, validates (throws ConfigError) and freezes.
ReadonlyconnectReadonlyencodingDefault ingest body encoding ("json" unless configured).
ReadonlyheadersOptional ReadonlyhooksOptional ReadonlyloggerOptional ReadonlyproxyOptional ReadonlyquerySQL connection password.
Optional ReadonlyquerySQL query base URL (normalized).
Optional ReadonlyquerySQL connection username.
ReadonlyrequestReadonlyretryOptional ReadonlysourceDefault collection for queries.
Optional ReadonlysourceSource token for the ingest host.
ReadonlytlsReadonlytotalOptional ReadonlyurlIngest base URL (normalized), or undefined for a query-only client.
Optional ReadonlyuserStatic ReadonlyENV_Prefix of every environment variable.
Whether the ingest side (url + sourceToken) is configured.
Whether the SQL query side (queryUrl + queryUsername + queryPassword) is configured.
base64(username:password) for HTTP Basic, or undefined without query credentials.
Credential values to redact from error messages and logs.
Debug form with every credential redacted.
The common settings for one side's transport (url = that side's base URL). Throws
ConfigError when the side is not configured.
Throws ConfigError when a setting is invalid (SPEC §2.2 plus API.md §2 rules).
StaticfromReturns options when it already is a config, otherwise builds one.
StaticfromBuilds a config from the environment. Precedence: explicit overrides >
GROW_BETTER_STACK_LOGS_<NAME> > vendor variables (VENDOR_ENV) > defaults.
Immutable configuration of BetterStackClient.