Accepts a DatadogLogsConfig or plain options. Throws ConfigError when invalid.
The intake exporter (one per client, default limits).
Flushes and closes every log client, then releases connections. Idempotent.
Reachability through GET /api/v1/validate (Datadog has no health endpoint). 2xx → healthy
(details.apiKeyValid); 401/403 → healthy=false, status="unauthorized"; 429 → degraded;
5xx → unhealthy; network errors → unreachable. Never throws except CANCELLED (also on a
closed client) / CONFIG.
A batching DatadogLogClient. The resource defaults to the configured service,
version, env and hostname. close flushes and closes every log client it created.
Authenticated round trip GET /api/v1/validate; returns the latency in milliseconds. 403 →
AuthenticationError; a 2xx without {"valid": true} → UnavailableError.
The query client (search, aggregate, indexes). Throws ConfigError without appKey.
Datadog is a SaaS without a version endpoint: always throws UnsupportedError.
Whether the API key is valid (GET /api/v1/validate): true for {"valid": true}, false
for 403. Other failures throw the mapped error.
StaticfromBuilds a client from GROW_DATADOG_LOGS_*, DD_API_KEY, DD_SITE, … environment variables.
Client for Datadog Log Management: API key checks, the logs intake (
logClient,exporter) and the query API (query, needsappKey).Example