@grow-codes/datadog-logs - v0.1.1
    Preparing search index...

    Class DatadogLogExporter

    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 header DD-API-KEY only. The intake POST is retried like an idempotent call (429, 5xx, network errors; duplicates are possible after an ambiguous failure).

    Implements

    Index
    • Posts one JSON array body to the intake (gzip when opts.gzip). Throws the mapped SDK error.

      Parameters

      Returns Promise<void>