Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Added support for AWS API Gateway v2 payloads #2191

Merged
merged 1 commit into from
May 14, 2024

Conversation

jsumners-nr
Copy link
Contributor

This PR resolves #2189.

@jsumners-nr jsumners-nr marked this pull request as ready for review May 13, 2024 12:14
@jsumners-nr jsumners-nr changed the title fix: Added support of AWS API Gateway v2 payloads fix: Added support for AWS API Gateway v2 payloads May 13, 2024
Comment on lines +30 to +34
"attributes": {
"aws.lambda.eventSource.accountId": "requestContext.accountId",
"aws.lambda.eventSource.apiId": "requestContext.apiId",
"aws.lambda.eventSource.stage": "requestContext.stage"
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

"resourceId" and "resourcePath", found in the v1 payload, are not present in v2 payloads.

@jsumners-nr jsumners-nr requested review from mrickard and bizob2828 May 13, 2024 14:06
@mrickard mrickard self-assigned this May 13, 2024
@jsumners-nr jsumners-nr merged commit 0ccdc6a into newrelic:main May 14, 2024
27 checks passed
@jsumners-nr jsumners-nr deleted the issue-2189 branch May 14, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Fix parsing of v2 API Gateway headers for Lambda
2 participants