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

chore: sample trace before flush unless already sampled #3946

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ZStriker19
Copy link

What does this PR do?
This PR causes a trace to be sampled during flush with the intent of making sampling lazy.
Motivation:
Lazy sampling allows sampling on tags and resource

Additional Notes:

How to test the change?

Unsure? Have a question? Request a review!

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.84%. Comparing base (4fff83a) to head (7203b51).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3946      +/-   ##
==========================================
- Coverage   97.85%   97.84%   -0.01%     
==========================================
  Files        1303     1303              
  Lines       78139    78142       +3     
  Branches     3894     3895       +1     
==========================================
- Hits        76462    76461       -1     
- Misses       1677     1681       +4     
Flag Coverage Δ
97.84% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

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.

2 participants