You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the CDK construct does is to set the DD_API_KEY_SECRET_ARN env variable. It looks like datadog-lambda-js does not behave well when this is set instead of the usual API key.
hi @olivierpichon - thanks! We'll need to modify the logic to not check for an API key if this library is used in contexts where it won't need the API key. I'll update this issue and close with a PR when it's ready.
Expected Behavior
We use the datadog-cdk-construct to instrument our lambda functions. Most of our logs look like this:
And data is pushed correctly to datadog. We would expect no errors showing up.
Actual Behavior
Quite regularly we get errors in the cloudwatch logs of our newly instrumented lambda function that look like this:
We do provide API KEY, via apiKeySecretArn (see below). So not quite sure what does this error means.
Steps to Reproduce the Problem
All the CDK construct does is to set the
DD_API_KEY_SECRET_ARN
env variable. It looks likedatadog-lambda-js
does not behave well when this is set instead of the usual API key.Specifications
NB: this bug was already submitted here DataDog/datadog-cdk-constructs#80 and I was advised to move it here.
The text was updated successfully, but these errors were encountered: