Skip to content

Issue #8641: Support a request wrapper for API Gateway V2 HTTP events#8642

Closed
azell wants to merge 6 commits intoopen-telemetry:mainfrom
azell:api-gateway-v2
Closed

Issue #8641: Support a request wrapper for API Gateway V2 HTTP events#8642
azell wants to merge 6 commits intoopen-telemetry:mainfrom
azell:api-gateway-v2

Conversation

@azell
Copy link
Copy Markdown

@azell azell commented Jun 3, 2023

Implementation and unit tests for the TracingRequestApiGatewayV2Wrapper class. Referencing the API Gateway V2 classes required updating com.amazonaws:aws-lambda-java-events to version 3.11.2.

Some classes explicitly test for the API Gateway V1 classes. I extended these classes to also test for the API Gateway V2 classes.

@azell azell requested a review from a team June 3, 2023 03:34
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Jun 3, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

Comment thread instrumentation/aws-lambda/aws-lambda-events-2.2/javaagent/build.gradle.kts Outdated
@github-actions github-actions Bot requested a review from theletterf June 5, 2023 23:27
@azell azell force-pushed the api-gateway-v2 branch from e6f3658 to a00ea05 Compare June 6, 2023 23:39
// NB: 2.2.0 includes a class called SQSEvent but isn't usable due to it returning private classes
// in public API.
library("com.amazonaws:aws-lambda-java-events:2.2.1")
library("com.amazonaws:aws-lambda-java-events:3.9.0")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the javaagent instrumentation not work without bumping this?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question, let me revert and run test target.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if you revert this javaagent tests will still run with 3.9.0 beacuse 2.2.1 declared here is updated to 3.9.0 because of :instrumentation:aws-lambda:aws-lambda-events-2.2:testing. If you make the tests run with 2.2.1 they'll fail. The way I see it there are two options, either change the supported version 2.2 -> 3.9 everywhere (docs, package name, etc.) or figure out a way how to support both versions. That could involve having a separate instrumentation for 3.9 and extracting common code so that both 3.9 and 2.2 instrumentation could use it or using reflection.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 3, 2025

This PR has been labeled as stale due to lack of activity. It will be automatically closed if there is no further activity over the next 14 days.

@github-actions github-actions Bot added the stale label Oct 3, 2025
@github-actions github-actions Bot closed this Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants