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 span cleaner executor to use correct span cleaner reference #423

Merged
merged 1 commit into from Aug 3, 2018

Conversation

mar-kolya
Copy link
Contributor

No description provided.

@mar-kolya mar-kolya requested a review from realark August 1, 2018 20:39
executorService.scheduleAtFixedRate(new SpanCleaner(), 0, CLEAN_FREQUENCY, TimeUnit.SECONDS);
try {
Runtime.getRuntime()
.addShutdownHook(
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you relying on the shutdown hook from DDTracer then?

Copy link
Contributor Author

@mar-kolya mar-kolya Aug 2, 2018

Choose a reason for hiding this comment

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

Yes, my understanding is that original problem might have been caused by us creating two SpanCleaners instead of one. Do you have any thoughts/objections on this approach?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, I think it's fine. Just making sure I understood.

@mar-kolya mar-kolya merged commit 5289204 into master Aug 3, 2018
@mar-kolya mar-kolya deleted the mar-kolya/fix-span-cleaner-bug branch August 3, 2018 13:15
@tylerbenson tylerbenson added this to the 0.13.0 milestone Aug 13, 2018
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.

None yet

2 participants