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

NH-90333 Add load_instrumentor condition for aws-lambda #430

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

tammy-baylis-swi
Copy link
Contributor

Adds condition at custom distro's load_instrumentor function that is called for every eligible, installed instrumentor by upstream sitecustomize.

If it's the AwsLambdaInstrumentor (entry point name "aws-lambda") and we're in Lambda environment, we skip because we assume the Lambda wrapper has already loaded it.

@tammy-baylis-swi tammy-baylis-swi marked this pull request as ready for review September 6, 2024 22:41
@tammy-baylis-swi tammy-baylis-swi requested a review from a team as a code owner September 6, 2024 22:41
Copy link
Contributor

@cheempz cheempz left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the writeup and testing @tammy-baylis-swi!

@tammy-baylis-swi tammy-baylis-swi merged commit a03bba5 into main Sep 9, 2024
58 of 59 checks passed
@tammy-baylis-swi tammy-baylis-swi deleted the NH-90333-fix-lambda-already-instrumented branch September 9, 2024 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants