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(instrumentation/aws-lambda): Ensure callback is only called once #1384

Merged
merged 3 commits into from
Feb 8, 2023

Conversation

Aneurysm9
Copy link
Member

…regardless how many providers are flushed

Signed-off-by: Anthony J Mirabella a9@aneurysm9.com

Which problem is this PR solving?

Defect identified in #1370 (review).

Short description of the changes

Combine all provider flush invocations to a single Promise.all() that can be resolved once.

…regardless how many providers are flushed

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
@codecov
Copy link

codecov bot commented Feb 8, 2023

Codecov Report

Merging #1384 (76e2e57) into main (096129c) will decrease coverage by 0.23%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1384      +/-   ##
==========================================
- Coverage   96.10%   95.87%   -0.23%     
==========================================
  Files          14       16       +2     
  Lines         898     1116     +218     
  Branches      192      233      +41     
==========================================
+ Hits          863     1070     +207     
- Misses         35       46      +11     
Impacted Files Coverage Δ
...-instrumentation-aws-lambda/src/instrumentation.ts 93.82% <100.00%> (ø)
...tapackages/auto-instrumentations-node/src/utils.ts 98.21% <0.00%> (ø)

Copy link
Member

@pichlermarc pichlermarc left a comment

Choose a reason for hiding this comment

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

Thanks for following up on it - I should've caught that when reviewing the previous PR.

Copy link
Member

@dyladan dyladan left a comment

Choose a reason for hiding this comment

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

Looks good. Minor clarification nit

…rumentation.ts

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
@dyladan dyladan merged commit d822f75 into open-telemetry:main Feb 8, 2023
@dyladan dyladan mentioned this pull request Feb 8, 2023
@Aneurysm9 Aneurysm9 deleted the fix/lambdaFlushCallback branch February 8, 2023 22:31
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.

5 participants