Applies defaults, validates (throws ConfigError) and freezes.
Optional ReadonlyapiDatadog API key.
ReadonlyapiAPI base URL.
Optional ReadonlyappDatadog application key (query API only).
ReadonlyconnectOptional ReadonlyenvEnvironment (env: tag).
ReadonlyheadersOptional ReadonlyhooksOptional ReadonlyhostnameDefault hostname.
ReadonlyintakeLogs intake base URL.
Optional ReadonlyloggerOptional ReadonlyproxyReadonlyrequestReadonlyretryOptional ReadonlyserviceDefault service.
ReadonlysiteNormalized Datadog site.
Readonlysourceddsource of every log.
ReadonlytagsTags added to every log.
ReadonlytlsReadonlytotalReadonlyurlurl when given, else apiUrl (used for relative paths).
Optional ReadonlyuserOptional ReadonlyversionVersion (version: tag).
Static ReadonlyDEFAULT_Default site.
Static ReadonlyENV_Prefix of every environment variable.
Credential values to redact from error messages and logs.
Debug form with every credential redacted.
Returns a string representation of an object.
Throws ConfigError when a setting is invalid: unknown site (unless both base URLs are set), non-http(s) URLs, missing or blank API key, blank application key.
StaticfromReturns options when it already is a config, otherwise builds one.
StaticfromBuilds a config from the environment. Precedence: explicit overrides >
GROW_DATADOG_LOGS_<NAME> > vendor variables (DD_API_KEY, DD_SITE, … see
VENDOR_ENV) > defaults.
Immutable configuration of DatadogLogsClient.