From 3120b8fb82559f6ded8899e354bde9a636073708 Mon Sep 17 00:00:00 2001 From: Tian Chu Date: Thu, 19 Dec 2019 13:40:34 -0500 Subject: [PATCH] Update README with DD_LOGS_INJECTION --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 8e000355..dbd32e2a 100644 --- a/README.md +++ b/README.md @@ -219,6 +219,10 @@ If your Lambda function is triggered by API Gateway via the non-proxy integratio If your Lambda function is deployed by the Serverless Framework, such a mapping template gets created by default. +## Log and Trace Correlations + +To connect logs and traces, set the environment variable `DD_LOGS_INJECTION` to `true` if `console` is used for logging. For other logging libraries, see instructions for [automatic](https://docs.datadoghq.com/tracing/advanced/connect_logs_and_traces/?tab=nodejs#automatic-trace-id-injection) and [manual](https://docs.datadoghq.com/tracing/advanced/connect_logs_and_traces/?tab=nodejs#manual-trace-id-injection) trace id injection. + ## Opening Issues If you encounter a bug with this package, we want to hear about it. Before opening a new issue, search the existing issues to avoid duplicates.