shared transport of the client.
client configuration (intake URL, API key, defaults for service/host/tags).
request limits.
Maps and splits records into intake request bodies (no I/O).
Sends the records. Returns {accepted, rejected, error?}; a failing request stops the export
(later chunks count as rejected). Never throws for service errors.
Posts one JSON array body to the intake (gzip when opts.gzip). Throws the mapped SDK error.
Nothing to release; the client owns the transport.
LogExporter for
POST {intake}/api/v2/logs: maps records to Datadog JSON, truncates oversized messages, splits batches at 1000 entries / 5 MB, gzips (when asked) and sends with headerDD-API-KEYonly. The intake POST is retried like an idempotent call (429, 5xx, network errors; duplicates are possible after an ambiguous failure).