Skip to content

[Lambda] Fix logging to only happen inside lambda function #431

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

Merged
merged 1 commit into from
May 15, 2024

Conversation

majanjua-amzn
Copy link
Contributor

Through testing, found that the error message comes no matter what if the trace header is incomplete. The expected behaviour is to only see this message if we are inside a lambda function, hence the expectation for the trace header existing in the environment.

Description of changes:

  • Add condition checking for the lack of a trace header, indicating we are not in a lambda function, to print the error message.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@majanjua-amzn majanjua-amzn requested a review from a team as a code owner May 15, 2024 16:46
@wangzlei wangzlei merged commit 5c38703 into aws:master May 15, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants