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: record sample rate in decision cache during stress relief #1273

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

VinozzZ
Copy link
Contributor

@VinozzZ VinozzZ commented Aug 14, 2024

Which problem is this PR solving?

Sample rate is not recorded in trace decision cache during stress relief. This could cause weird sample rate data for spans arrived after refinery has exited stress relief mode
fix: #1271

Short description of the changes

  • record sample rate in decision cache
  • add tests
  • make sure collector uses clockwork.Clock in all places

@VinozzZ VinozzZ requested a review from a team as a code owner August 14, 2024 21:03
@VinozzZ VinozzZ force-pushed the yingrong.samplerate_stress branch from 59ca835 to 057badd Compare August 14, 2024 21:03
@VinozzZ VinozzZ added this to the v2.8 milestone Aug 14, 2024
@VinozzZ VinozzZ self-assigned this Aug 14, 2024
@VinozzZ VinozzZ merged commit 039babc into main Aug 14, 2024
5 checks passed
@VinozzZ VinozzZ deleted the yingrong.samplerate_stress branch August 14, 2024 22:50
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.

Record sample rate for kept traces during stress relief
2 participants