Skip to content

[Lambda] Replace Facade with No-Op if trace header is missing data #651

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 3 commits into from
Jun 4, 2024

Conversation

majanjua-amzn
Copy link
Contributor

To support Root Lambda PassThrough, we want to have a no-op segment when PassThrough mode is enabled to allow for SDK to have its functionalities disabled for the given segment. The following tests were done using two lambda functions, A and B, where A calls B.

Lambda A PassThrough calling Prod Lambda B Active:

  • A: Root=1-665a0c0c-2420a39e4fca953752e2e9f4;Lineage=061379e8:0
  • B: Root=1-665a0c0c-2420a39e4fca953752e2e9f4;Parent=8c885bca7ccc2033;Sampled=1;Lineage=061379e8:0|cbc84ad3:0

Lambda A Active calling Prod Lambda B Active:

  • A: Root=1-665a39a0-7e53f00f3b1da8ad70666729;Parent=ce7fe8bbc2783986;Sampled=1;Lineage=061379e8:0
  • B: Root=1-665a39a0-7e53f00f3b1da8ad70666729;Parent=e80ec591cab089eb;Sampled=1;Lineage=061379e8:0|cbc84ad3:0

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 31, 2024 22:04
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.80%. Comparing base (73e1fca) to head (2c415e1).

Current head 2c415e1 differs from pull request most recent head 1d6d314

Please upload reports for the commit 1d6d314 to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #651      +/-   ##
==========================================
- Coverage   83.49%   82.80%   -0.70%     
==========================================
  Files          37       37              
  Lines        1806     1855      +49     
==========================================
+ Hits         1508     1536      +28     
- Misses        298      319      +21     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@wangzlei wangzlei left a comment

Choose a reason for hiding this comment

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

LGTM!

@wangzlei wangzlei merged commit 75798cb into aws:master Jun 4, 2024
13 checks passed
wangzlei added a commit that referenced this pull request Jun 6, 2024
Revert #651 [Lambda] Replace Facade with No-Op if trace header is missing data
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.

3 participants