DataDog / datadog-lambda-js

The Datadog AWS Lambda Library for Node
Apache License 2.0
109 stars 35 forks source link

Feature request: Enhanced metric for batch item failures #435

Closed rg-lesmills closed 4 months ago

rg-lesmills commented 10 months ago

At our company, most of our Lambda functions are batching SQS events and using batchItemFailures for partial batch failures.

What this means practically is that Lambda will succeed, returning a list of failed events, rather than throwing an error.

Which means that the aws.lambda.errors and aws.lambda.enhanced.errors metrics are both useless, because even if the whole batch of events fails to process, the invocation is marked as a success.

It would be great if we could have a metric driven by the number of failed events (size of the batchItemFailures array in the response).

astuyve commented 10 months ago

Hi @rg-lesmills, thanks for reaching out!

Definitely. This is something we'll add as a feature request internally, and close this issue when it is released.

Thanks!

duncanista commented 4 months ago

This should be available in the next release!

duncanista commented 4 months ago

Closing due to latest release v109 🎉 being available!

rg-lesmills commented 3 months ago

@astuyve @duncanista @ssolmonson Thank you so much! 😄