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

Remove handling of promises + fix issues connecting unrelated traces #50

Conversation

RafalSumislawski
Copy link
Member

We don't need to handle promises here because coralogix/opentelemetry-js-contrib#19 will convert promise based handlers to callback based.

The change to use ROOT_CONTEXT basically means that when we don't receive any trace information in the request, then we start a new trace. The previous code would in some edge cases reuse leftover trace context from previous invocation which doesn't make sense.

@RafalSumislawski RafalSumislawski requested a review from a team September 6, 2024 12:44
@RafalSumislawski RafalSumislawski merged commit fddc4e0 into coralogix-nodejs-autoinstrumentation Sep 6, 2024
1 of 3 checks passed
@RafalSumislawski RafalSumislawski deleted the feature/NGSTN-982-remove-handling-of-promises branch September 6, 2024 12:49
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