Skip to content

Support AWS Lambda SQS handlers that report partial batch failures #14441

@jjant

Description

@jjant

Is your feature request related to a problem? Please describe.

SQSEvent handler lambdas can report partial batch failures by returning a SQSBatchResponse object containing a list of message ids which failed to be processed (to be put back in the queue). That means those handlers must implement RequestHandler<SQSEvent, SQSBatchResponse>.

The current OpenTelemetry SQS wrapper implements RequestHandler<SQSEvent, Void> instead.

Describe the solution you'd like

I believe we can change these two handlers:

To implement TracingRequestHandler<SQSEvent, T> instead of TracingRequestHandler<SQSEvent, Void>.

Describe alternatives you've considered

No response

Additional context

No response

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds triageNew issue that requires triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions