Skip to content

Conversation

@hmstepanek
Copy link
Contributor

@hmstepanek hmstepanek commented Dec 3, 2025

Overview

Prioritize full granularity over partial granularity:

  • priority +=2 when full granularity and sampled=true
  • priority +=1 when partial granularity and sampled=true
  • always_on sampler for full granularity sets priority=3 instead of 2
  • priority=random and sampled=false when dt disabled or dt enabled but partial and full disabled

@hmstepanek hmstepanek requested a review from a team as a code owner December 3, 2025 01:48
@github-actions
Copy link

github-actions bot commented Dec 3, 2025

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 7 0 0 1.08s
✅ MARKDOWN markdownlint 7 0 0 0 1.3s
✅ PYTHON ruff 959 1 0 0 1.05s
✅ PYTHON ruff-format 959 1 0 0 0.35s
✅ YAML prettier 15 0 0 0 1.55s
✅ YAML v8r 15 0 0 5.51s
✅ YAML yamllint 15 0 0 0.68s

See detailed reports in MegaLinter artifacts

MegaLinter is graciously provided by OX Security

@hmstepanek hmstepanek changed the base branch from main to develop-hybrid-core-tracing December 3, 2025 01:53
@mergify mergify bot added tests-failing Tests failing in CI. merge-conflicts Merge conflicts detected. labels Dec 3, 2025
@hmstepanek hmstepanek force-pushed the fix-partial-sampled-priority branch from 5675c73 to a217de8 Compare December 9, 2025 22:50
@mergify mergify bot removed the merge-conflicts Merge conflicts detected. label Dec 9, 2025
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop-hybrid-core-tracing@02dbb85). Learn more about missing BASE report.

Additional details and impacted files
@@                      Coverage Diff                       @@
##             develop-hybrid-core-tracing    #1598   +/-   ##
==============================================================
  Coverage                               ?   79.90%           
==============================================================
  Files                                  ?      211           
  Lines                                  ?    24664           
  Branches                               ?     3920           
==============================================================
  Hits                                   ?    19709           
  Misses                                 ?     3569           
  Partials                               ?     1386           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

* priority +=2 when full granularity and sampled=true
* priority +=1 when partial granularity and sampled=true
* always_on sampler for full granularity sets priority=3 instead of 2
@hmstepanek hmstepanek force-pushed the fix-partial-sampled-priority branch from a217de8 to 5623745 Compare December 10, 2025 01:55
@hmstepanek hmstepanek changed the title Fix partial sampled priority Prioritize full granularity over partial granularity Dec 10, 2025
(
(True, "always_off", True, "adaptive", None, None, True), # Uses adaptive sampling algo.
(True, "always_on", True, "adaptive", True, 2, False), # Uses adaptive sampling algo.
(False, "always_on", False, "adaptive", False, 0, False), # Uses adaptive sampling algo.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved this into the new test case below so we can actually check the value of priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests-failing Tests failing in CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants