Skip to content

Properly Close PeriodicStackTraceSampler #2375

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

Merged

Conversation

tduncan
Copy link
Contributor

@tduncan tduncan commented Jul 11, 2025

Wait for the sampling thread to finish before returning from the close method. Also prevent on demand samples from being taken if a sampling for a trace starts or stops after the sampler is closed.

Addresses #2374

…ccounts for the possibility that the sampling thread was actively taking and reporting samples when the shutdown request comes in.
@tduncan tduncan requested review from a team as code owners July 11, 2025 16:06
@laurit laurit merged commit 3343614 into signalfx:main Jul 11, 2025
28 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 11, 2025
@tduncan tduncan deleted the fix-failing-periodic-stack-trace-sampler-test branch July 11, 2025 19:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants