Skip to content

feat: Window sample all metrics with metrics_target_per_second=True - #8428

Open
alexander-alderman-webb wants to merge 8 commits into
webb/trace-connected-reservoirfrom
webb/default-per-second
Open

alexander-alderman-webb wants to merge 8 commits into
webb/trace-connected-reservoirfrom
webb/default-per-second

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Setting metrics_target_per_second=True sends at most two metrics per name every 5 seconds: one from inside sampled spans and one from everywhere else.

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

PR risk: medium

For commit 0afcb1c.

Main concerns: data sent to Sentry, public contract, reach.

Rules that block low also fired:

  • R5: dependencies or bundled SDK versions changed: setup.py
  • R6: build or release configuration changed: setup.py

This label is a hint for reviewers, not an approval.

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ 59873 passed | ⏭️ 3119 skipped | Total: 62992 | Pass Rate: 95.05% | Execution Time: 161m 44s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +425
Passed Tests 📈 +425
Failed Tests 📉 -1
Skipped Tests 📈 +1

➖ Removed Tests (1)

View removed tests
  • test_execution_outcome[start_sync_execution-SUCCEEDED-None]
    • File: tests.integrations.boto3.test_stepfunctions

All tests are passing successfully.

✅ Patch coverage is 86.67% (26 of 30 changed executable lines covered; target 80%).
Project statement coverage is 90.11% (down 0.07 percentage points from base (e451635) to head (0afcb1c)).

Changed files with executable lines (3)
File Patch coverage Changed executable lines
sentry_sdk/_lock_free_metrics_batcher.py 85.71% 24/28 covered; missed: 125, 126, 195, 324; partial branches: 98, 194, 323
sentry_sdk/client.py 100.00% 1/1 covered
sentry_sdk/consts.py 100.00% 1/1 covered
Coverage diff
@@            Coverage Diff             @@
##        master     #8428       +/-##
==========================================
- Coverage    90.18%    90.11%    -0.07%
==========================================
  Files          201       202        +1
  Tracked lines     22184     22520      +336
  Branches      7772      7894      +122
==========================================
+ Hits         20005     20292      +287
- Misses        2179      2228       +49
- Partials      1282      1307       +25

Generated by Coverage Action

@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Dec 1, 2026
@alexander-alderman-webb
alexander-alderman-webb marked this pull request as ready for review December 1, 2026 09:30
@alexander-alderman-webb
alexander-alderman-webb requested a review from a team as a code owner December 1, 2026 09:30
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Dec 1, 2026
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Dec 1, 2026
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Dec 1, 2026
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Dec 1, 2026
…econd

# Conflicts:
#	sentry_sdk/_lock_free_metrics_batcher.py
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Dec 1, 2026
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: medium PR risk score: medium labels Dec 1, 2026

This branch has not been deployed

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

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants