Skip to content

Commit 3120b8f

Browse files
committed
Update README with DD_LOGS_INJECTION
1 parent 8ba3cbf commit 3120b8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ If your Lambda function is triggered by API Gateway via the non-proxy integratio
219219

220220
If your Lambda function is deployed by the Serverless Framework, such a mapping template gets created by default.
221221

222+
## Log and Trace Correlations
223+
224+
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.
225+
222226
## Opening Issues
223227

224228
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.

0 commit comments

Comments
 (0)