DataDog / datadog-lambda-extension

The Datadog Lambda Extension is an AWS Lambda Extension that supports submitting custom metrics, traces, and logs asynchronously while your AWS Lambda function executes.
Apache License 2.0
82 stars 5 forks source link

Missing logs and APM traces when a lambda reaches maximum memory #187

Open glenthomas opened 11 months ago

glenthomas commented 11 months ago

Similar to #89.

When a lambda reaches maximum memory it is killed by the runtime and the following is written to the CloudWatch log stream:

RequestId: 45b36944-5896-4d3b-a4eb-b2af494eb662 Error: Runtime exited with error: signal: killed
Runtime.ExitError

Logs and traces are not present in Datadog.

The following layer versions are present:

image
hghotra commented 2 months ago

Hi @glenthomas, can you try the latest version of the extension and report if this is still an issue? You should be able to see the logs with the latest extension.

smoya commented 2 months ago

@hghotra does it work for the containerized version of the extension? I have it running but I see no traces nor logs when oom-killed.