Applies defaults, validates (throws ConfigError) and freezes.
Optional ReadonlyapiDatadog API key (query API only).
ReadonlyapiQuery API base URL.
Optional ReadonlyappDatadog application key (query API only).
ReadonlyconnectOptional Readonlyenvironmentenv of unified service tagging.
ReadonlyheadersOptional ReadonlyhooksOptional ReadonlyloggerOptional ReadonlyotlpOTLP endpoint as configured (see otlpTracesEndpoint for the resolved URL).
ReadonlyprotocolOTLP protocol.
Optional ReadonlyproxyReadonlyrequestReadonlyretryOptional Readonlyserviceservice of unified service tagging.
Optional Readonlyserviceversion of unified service tagging.
ReadonlysiteDatadog site.
ReadonlytagsExtra resource attributes.
ReadonlytlsReadonlytotalReadonlyurlOptional ReadonlyuserStatic ReadonlyDEFAULT_Default Agent trace intake URL.
Static ReadonlyENV_Prefix of every environment variable.
True when both the API key and the application key are set (query API usable).
The resolved OTLP traces URL for protocol (see otlpTracesUrl).
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.
StaticfromReturns options when it already is a config, otherwise builds one.
StaticfromBuilds a config from the environment. Precedence per field: explicit overrides >
GROW_DATADOG_APM_<NAME> > vendor variables > defaults.
| Field | GROW_DATADOG_APM_* |
Vendor variables |
|---|---|---|
url |
URL |
DD_TRACE_AGENT_URL, else http://${DD_AGENT_HOST}:${DD_TRACE_AGENT_PORT} |
otlpEndpoint |
OTLP_HTTP_ENDPOINT / OTLP_GRPC_ENDPOINT (by protocol), OTLP_ENDPOINT |
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, OTEL_EXPORTER_OTLP_ENDPOINT |
protocol |
OTLP_PROTOCOL |
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL, OTEL_EXPORTER_OTLP_PROTOCOL |
serviceName |
SERVICE |
DD_SERVICE, OTEL_SERVICE_NAME |
serviceVersion |
VERSION |
DD_VERSION |
environment |
ENV |
DD_ENV |
tags |
TAGS |
DD_TAGS |
apiKey |
API_KEY |
DD_API_KEY |
appKey |
APP_KEY |
DD_APP_KEY, DD_APPLICATION_KEY |
site |
SITE |
DD_SITE |
apiUrl |
API_URL |
— |
Immutable configuration of DatadogApmClient and initTracing.