Skip to content

Datadog Log Management SDK

Grow Codes CI License

One API for Datadog Log Management in five languages: TypeScript, Rust, Go, Python and Java. Every package has the same functions, options, defaults, error codes and behaviour, tested in Docker against Datadog's own intake emulator (datadog/fakeintake:v79).

Language Package Coverage
TypeScript @grow-codes/datadog-logs TypeScript coverage
Rust grow-datadog-logs Rust coverage
Go github.com/grow-codes-packages/datadog-logs/go Go coverage
Python grow-datadog-logs Python coverage
Java codes.grow.packages:datadog-logs Java coverage

What you get

  • Client with health, authenticated ping and API key validation (Client).
  • Configuration from code or GROW_DATADOG_LOGS_* / vendor environment variables, immutable and validated (Configuration).
  • Retries with full-jitter backoff and Retry-After, connect/request/total timeouts and cancellation in every language.
  • Typed errors with one set of codes across languages (Error handling).
  • Redaction everywhere: credentials never appear in errors, logs, hooks or toString (Redaction).
  • Logging: batching log client, logger facade, redaction processor, framework adapters and log search (Logging).
  • Logs intake to every Datadog site: gzip, 1,000 entries / 5 MB per request, 1 MB truncation, reserved attributes and trace correlation (Intake).
  • Logs search with an application key: searchLogs with cursor pagination, aggregateLogs, indexes, a polling tail and waitForLog (Search).

Start with Install and the Quickstart.

Independent project

This SDK is made by Grow Codes. Datadog Log Management is a trademark of Datadog, Inc. This project is not affiliated with or endorsed by Datadog, Inc. See License & disclaimer.