aws-samples / aws-lambda-extensions

A collection of sample extensions to help you get started with AWS Lambda Extensions
MIT No Attribution
442 stars 145 forks source link

Fix bug in telemetry api extension dispatcher #90

Closed umang-malik closed 1 year ago

umang-malik commented 1 year ago

The dispatcher in the Telemetry API extension has a bug. When putting log events back into the queue, we are putting back the index of the event instead of the actual event.

i.e. We are putting back 0, 1, 2, ... (integers) in the queue instead of logEvents[0], logEvents[1] ....

In this PR I am fixing this bug.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.