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: sample on TraceOperation and root span metrics and tags #3944

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ZStriker19
Copy link

What does this PR do?
By changing what the trace operation returns for its metadata by checking the root span as well for it, we can easily sample on all values both in the trace operation (which will be added to the root span before flush) and the root span.

Motivation:
Previously Ruby was not up to spec because only metadata attached to the trace operation was able to be sampled on. This meant that users could possibly see tag or metric values on the root span in the UI but not be able actually sample on them.

Additional Notes:

How to test the change?

Unsure? Have a question? Request a review!

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 40.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 97.84%. Comparing base (4fff83a) to head (5f280bd).

Files with missing lines Patch % Lines
lib/datadog/tracing/trace_operation.rb 40.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3944      +/-   ##
==========================================
- Coverage   97.85%   97.84%   -0.02%     
==========================================
  Files        1303     1303              
  Lines       78139    78149      +10     
  Branches     3894     3895       +1     
==========================================
- Hits        76462    76461       -1     
- Misses       1677     1688      +11     
Flag Coverage Δ
97.84% <40.00%> (-0.02%) ⬇️

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.

@pr-commenter
Copy link

pr-commenter bot commented Sep 25, 2024

Benchmarks

Benchmark execution time: 2024-09-25 17:57:07

Comparing candidate commit aefd6fa in PR branch zachg/fix_sample_on_all_root_span_tags 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.

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