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 before digest #3945

Merged
4 commits merged into from
Oct 7, 2024
Merged

chore: sample before digest #3945

4 commits merged into from
Oct 7, 2024

Conversation

ZStriker19
Copy link
Contributor

What does this PR do?
This PR causes a trace to be sampled upon digest creation with the intent of making sampling lazy. The benefit of this approach is that we only create digests right before either propagation or context changes like forking or threading. Therefore it covers multiple exits. The downside is having sampling run as a side effect of creating a digest.

Additional Notes:

How to test the change?

Unsure? Have a question? Request a review!

@pr-commenter
Copy link

pr-commenter bot commented Sep 25, 2024

Benchmarks

Benchmark execution time: 2024-09-25 17:58:42

Comparing candidate commit e9b2cd7 in PR branch zachg/sample_before_digest with baseline commit 4fff83a in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 23 metrics, 2 unstable metrics.

@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 (7f4dceb).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3945      +/-   ##
==========================================
- Coverage   97.85%   97.84%   -0.01%     
==========================================
  Files        1303     1303              
  Lines       78139    78141       +2     
  Branches     3894     3895       +1     
==========================================
- Hits        76462    76457       -5     
- Misses       1677     1684       +7     
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.

@marcotc marcotc closed this pull request by merging all changes into master in 9e26192 Oct 7, 2024
@marcotc marcotc deleted the zachg/sample_before_digest branch October 7, 2024 19:34
@github-actions github-actions bot added this to the 2.4.0 milestone Oct 7, 2024
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.

3 participants