Skip to content

fix(processing): Don't pretend to log 'not_sent' #92050

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

Merged
merged 1 commit into from
May 21, 2025
Merged

fix(processing): Don't pretend to log 'not_sent' #92050

merged 1 commit into from
May 21, 2025

Conversation

kcons
Copy link
Member

@kcons kcons commented May 21, 2025

Stop tracking/logging not_sent based on callback return value being None; callback return value is always expected to be None, not just on exception, so logging it as not_sent is misleading.

@kcons kcons requested a review from a team as a code owner May 21, 2025 19:00
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 21, 2025
Copy link

codecov bot commented May 21, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

⚠️ Parser warning

The parser emitted a warning. Please review your JUnit XML file:

Warning while parsing testcase attributes: Limit of string is 1000 chars, for name, we got 2083 at 1:156414 in /home/runner/work/sentry/sentry/.artifacts/pytest.junit.xml
Files with missing lines Patch % Lines
src/sentry/rules/processing/delayed_processing.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #92050       +/-   ##
===========================================
+ Coverage   41.73%   87.86%   +46.12%     
===========================================
  Files       10140    10167       +27     
  Lines      581783   582850     +1067     
  Branches    22592    22592               
===========================================
+ Hits       242816   512128   +269312     
+ Misses     338546    70301   -268245     
  Partials      421      421               

@kcons kcons merged commit cdcc87e into master May 21, 2025
61 checks passed
@kcons kcons deleted the kcons/meh branch May 21, 2025 21:15
Copy link

sentry-io bot commented May 22, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ ApiInvalidRequestError: {"message": "Cannot send an empty message", "code": 50006} sentry.rules.processing.delayed_processing View Issue
  • ‼️ SnubaError: HTTPConnectionPool(host='snuba-api', port=80): Read timed out. (read timeout=30) sentry.rules.processing.delayed_processing View Issue
  • ‼️ Actor.InvalidActor: Cannot find a User with id=237908 sentry.rules.processing.delayed_processing View Issue
  • ‼️ SlackApiError: The request to the Slack API failed. (url: https://www.slack.com/api/chat.postMessage) sentry.rules.processing.delayed_processing View Issue
  • ‼️ TimeoutError: Timeout reading from socket sentry.rules.processing.delayed_processing View Issue

Did you find this useful? React with a 👍 or 👎

andrewshie-sentry pushed a commit that referenced this pull request Jun 2, 2025
Stop tracking/logging `not_sent` based on callback return value being
None; callback return value is always expected to be `None`, not just on
exception, so logging it as `not_sent` is misleading.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants