Skip to main content

datadog-log-integration

This feature forwards logs emitted by the Flex Project Template to Datadog.

Configuration

This feature allows the following configuration settings.

datadog-log-integration settings

SettingDescription
Api keyYour Datadog Account client token
Log LevelThe minimum log level to send to Datadog. See Logging for more details.
Intake RegionThe Datadog Site for your account. Valid values are us
Flush TimeoutIn milliseconds. Because we send logs to datadog over HTTP - we do not want to make an HTTP request for every log written. This feature will buffer log messages for the flush timeout before making a single HTTP request to Datadog with all buffered log messages. If there are no logs within the Flush timeout, there is no HTTP request to Datadog.

Flex User Experience

Logs are forwarded automatically with no indication to the Flex User.

Dependencies

You will need a Datadog account, with a client token, as well as your intake region, or Datadog Site.

Client tokens are safe for use in browsers.

Metadata

All logs sent to Datadog are decorated with common metadata. In this case, we add the worker name and workerSid to every log message sent to Datadog automatically!

Note

Logs are forwarded to Datadog through HTTP, not the datadog sdk client. This is done to save build size of the template. If you're looking for a tighter integration with Datadog, consider a custom feature that implements their client sdk.