Skip to content

[Serverless] Add remaining event metadata attributes#2740

Draft
sharvath-newrelic wants to merge 1 commit intoserverless-modefrom
add-event-metadata-attributes
Draft

[Serverless] Add remaining event metadata attributes#2740
sharvath-newrelic wants to merge 1 commit intoserverless-modefrom
add-event-metadata-attributes

Conversation

@sharvath-newrelic
Copy link
Contributor

Overview

TODO

Related Github Issue

Resolves #2733

Testing

TODO

EVENT_EXTRACTORS.put(APIGatewayProxyRequestEvent.class, (event, txn) -> extractAPIGatewayProxyMetadata((APIGatewayProxyRequestEvent) event, txn));
EVENT_EXTRACTORS.put(APIGatewayV2HTTPEvent.class, (event, txn) -> extractAPIGatewayV2HTTPMetadata((APIGatewayV2HTTPEvent) event, txn));
EVENT_EXTRACTORS.put(CloudFrontEvent.class, (event, txn) -> extractCloudFrontMetadata((CloudFrontEvent) event, txn));
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This approach might be overkill, but perhaps preferable to a chunky if/else statement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant