Repository navigation
feat: Dual window for metrics with sampled spans - #8427
Open
alexander-alderman-webb wants to merge 5 commits into
Open
alexander-alderman-webb wants to merge 5 commits into
alexander-alderman-webb wants to merge 5 commits into
Conversation
Contributor
PR risk: mediumFor commit Main concerns: data sent to Sentry, public contract, reach. This label is a hint for reviewers, not an approval. |
Contributor
Coverage Results 📊✅ 59841 passed | ⏭️ 3119 skipped | Total: 62960 | Pass Rate: 95.05% | Execution Time: 162m 53s 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 93.02% (40 of 43 changed executable lines covered; target 80%). Changed files with executable lines (3)
Coverage diff@@ Coverage Diff @@
## master #8427 +/-##
==========================================
Coverage 90.11% 90.11% —%
==========================================
Files 201 202 +1
Tracked lines 22199 22507 +308
Branches 7784 7886 +102
==========================================
+ Hits 20004 20282 +278
- Misses 2195 2225 +30
- Partials 1283 1303 +20Generated by Coverage Action |
alexander-alderman-webb
force-pushed
the
webb/trace-connected-reservoir
branch
from
December 1, 2026 08:49
1b0f5e6 to
34330d3
Compare
alexander-alderman-webb
marked this pull request as ready for review
December 1, 2026 09:30
sentrivana
approved these changes
Dec 1, 2026
6 tasks done
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add a separate window for trace-connected metrics that have a sampled span. The window is harvested and treated the same as the existing window.
Metrics in the new window are sent in their own envelope to avoid running into Relay's size limits.
The rate per second is divided evenly between the two windows for one name, keeping one more metric in the trace-connected window if we would keep an odd number across a 5 second duration.
Issues
Reminders
uv run ruff.feat:,fix:,ref:,meta:)