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

impl: reservoir sample for span events #14407

Merged

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Jul 1, 2024

We can only upload 32 events per span to Cloud Trace. Some spans may
have a lot more. Use a reservoir sampler to randomly select which events
are sent. The first and last event are always preserved because they
usually contain something more important than any middle events.


This change is Reviewable

We can only upload 32 events per span to Cloud Trace. Some spans may
have a lot more. Use a reservoir sampler to randomly select which events
are sent.  The first and last event are always preserved because they
usually contain something more important than any middle events.
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Jul 1, 2024
Copy link

codecov bot commented Jul 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.58%. Comparing base (0ec79e5) to head (1a5f1fd).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14407      +/-   ##
==========================================
- Coverage   93.58%   93.58%   -0.01%     
==========================================
  Files        2313     2313              
  Lines      206885   206885              
==========================================
- Hits       193622   193619       -3     
- Misses      13263    13266       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@coryan coryan marked this pull request as ready for review July 1, 2024 15:48
@coryan coryan requested a review from a team as a code owner July 1, 2024 15:48
@coryan coryan added cpp: opentelemetry and removed samples Issues that are directly related to samples. labels Jul 1, 2024
@coryan coryan enabled auto-merge (squash) July 1, 2024 18:17
@coryan coryan merged commit 4ce1922 into googleapis:main Jul 1, 2024
64 checks passed
@coryan coryan deleted the impl-reservoir-sampling-for-span-events branch July 1, 2024 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants