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

Improved handling of Jaeger spans/scopes across threads #3134

Merged
merged 3 commits into from
Jun 22, 2021

Conversation

spericas
Copy link
Member

@spericas spericas commented Jun 18, 2021

Improved handling of Jaeger spans/scopes across threads. Fixes problems with MP async calls that resulted in memory leaks of ThreadLocalScope objects due to the failed attempt to close a scope from a different thread.

New implementation uses a DataPropagationProvider to close a scope on the primary thread and re-open it on the secondary thread --and eventually close it there as well. Minor change to the DataPropagationProvider spi.

Signed-off-by: Santiago Pericasgeertsen santiago.pericasgeertsen@oracle.com

…ms with MP async calls that resulted in memory leaks of ThreadLocalScope objects due to the failed attempt to close a scope from a different thread. New implementation uses a DataPropagationProvider to close a scope on the primary thread and re-open it on the secondary thread --and eventually close it there as well. Minor change to the DataPropagationProvider spi.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas spericas self-assigned this Jun 18, 2021
@spericas spericas added this to Normal priority in Backlog Jun 18, 2021
@spericas spericas changed the title WIP: Improved handling of Jaeger spans/scopes across threads Improved handling of Jaeger spans/scopes across threads Jun 21, 2021
Copy link
Member

@tomas-langer tomas-langer left a comment

Choose a reason for hiding this comment

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

A backward incompatible change.
This feature was introduces quite recently, yet I am not sure we can simply modify the SPI. Could we achieve the same with backward compatible default methods that would be deprecated?

…rd compatibility of the SPI.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
Copy link
Member

@tomas-langer tomas-langer left a comment

Choose a reason for hiding this comment

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

LGTM

@spericas spericas merged commit 576a666 into helidon-io:master Jun 22, 2021
Backlog automation moved this from Normal priority to Closed Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Backlog
  
Closed
Development

Successfully merging this pull request may close these issues.

None yet

2 participants