From b40bf2938b5b96b6904c385995e97ebbf1af2d36 Mon Sep 17 00:00:00 2001 From: Stephen Firrincieli Date: Thu, 24 Oct 2019 11:45:09 -0400 Subject: [PATCH] Update README to include DD_ENHANCED_METRICS --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6adbcbab..226d5062 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ The Datadog API must be defined as an environment variable via [AWS CLI](https:/ You can also supply or override the API key at runtime: ```python -# Override DD API Key after importing datadog_lambda packages +# Override DD API Key after importing datadog_lambda packages from datadog import api api._api_key = "MY_API_KEY" ``` @@ -57,6 +57,10 @@ To debug the Datadog Lambda Layer, set the environment variable below to `DEBUG` - DD_LOG_LEVEL +To increment `aws.lambda.enhanced.invocations` and `aws.lambda.enhanced.errors` Datadog Lambda integration metrics set this environment variable to `true`: + +- DD_ENHANCED_METRICS + ### The Serverless Framework If your Lambda function is deployed using the Serverless Framework, refer to this sample `serverless.yml`.