Skip to content

fix(crons)!: Add before_send_check_in, don't run before_send on check-ins - #8184

Merged
sentrivana merged 2 commits into
major/3.0from
ivana/before-send-check-in
Nov 4, 2026
Merged

sentrivana merged 2 commits into
major/3.0from
ivana/before-send-check-in

Conversation

@sentrivana

@sentrivana sentrivana commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Description

According to the check-in spec, check-ins MUST NOT go through before_send. SDKs may offer a separate beforeSendCheckIn hook instead.

  • Check-ins no longer go through before_send.
  • New before_send_check_in option to modify or drop check-ins.
  • Check-ins dropped by before_send_check_in are recorded under the monitor data category in client reports (previously error).
  • Added a test making sure event processors are not applied to check-ins (existing behavior, previously untested).
  • Added a note to the migration guide.

This is technically a bugfix, but the incorrect behavior has been out there for so long that it may now be expected behavior, so considering this breaking.

Issues

Closes #4814

Reminders

…-ins

Check-ins must not go through before_send according to the check-in spec.
Add a dedicated before_send_check_in option instead and record check-ins
dropped by it under the monitor data category.
@sentrivana sentrivana changed the title feat(crons): Add before_send_check_in, don't run before_send on check-ins fix(crons)!: Add before_send_check_in, don't run before_send on check-ins Nov 4, 2026
@sentrivana
sentrivana marked this pull request as ready for review November 4, 2026 15:16
@sentrivana
sentrivana requested a review from a team as a code owner November 4, 2026 15:16
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ 57836 passed | ⏭️ 3008 skipped | Total: 60844 | Pass Rate: 95.06% | Execution Time: 166m 10s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -83826
Passed Tests 📉 -79378
Failed Tests —
Skipped Tests 📉 -4448

All tests are passing successfully.

✅ Patch coverage is 100.00% (6 of 6 changed executable lines covered; target 80%).
Project statement coverage is 90.38% (up 0.06 percentage points from base (1c0d88c) to head (542810c)).

Changed files with executable lines (1)
File Patch coverage Changed executable lines
sentry_sdk/client.py 100.00% 6/6 covered
Coverage diff
@@            Coverage Diff             @@
##        master     #8184       +/-##
==========================================
+ Coverage    90.32%    90.38%    +0.06%
==========================================
  Files          203       199        -4
  Tracked lines     26905     21303     -5602
  Branches     10048      7366     -2682
==========================================
- Hits         24302     19254     -5048
+ Misses        2603      2049      -554
+ Partials      1516      1233      -283

Generated by Coverage Action

@sentrivana
sentrivana merged commit df16ce5 into major/3.0 Nov 4, 2026
155 checks passed
@sentrivana
sentrivana deleted the ivana/before-send-check-in branch November 4, 2026 16:04
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