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

Await early spans export + refactor handler wrapping #19

Conversation

RafalSumislawski
Copy link
Member

The main goal is to wait for the _sendEarlySpans to complete before we run the original handler function, because that function may occupy event loop for long enough to cause a timeout of _sendEarlySpans if they run concurrently. Additionally this PR refactors the code responsible for wrapping the heandler to make this simpler and also make that awaiting possible. It's not trully a refactor as in addition to making the code simpler it also solves some problems with edge-cases.

@RafalSumislawski RafalSumislawski merged commit 64fe3ce into coralogix-autoinstrumentation Sep 6, 2024
10 of 15 checks passed
@RafalSumislawski RafalSumislawski deleted the feature/NGSTN-982-await-early-spans-export branch September 6, 2024 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants