Skip to content

Conversation

ceorourke
Copy link
Member

@ceorourke ceorourke commented Sep 3, 2025

Add logs on both the subscription processor when a trigger's threshold is met or resolved and in workflow engine when the workflow's trigger conditions are met so that we can compare the two systems. Both logs have the detector ID so we can match them up and are behind a flag with a small subset of organizations flagged in so it won't be too much data.

@ceorourke ceorourke requested review from a team as code owners September 3, 2025 21:16
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 3, 2025
cursor[bot]

This comment was marked as outdated.

Copy link

codecov bot commented Sep 3, 2025

Codecov Report

❌ Patch coverage is 76.47059% with 4 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/incidents/subscription_processor.py 80.00% 2 Missing ⚠️
src/sentry/workflow_engine/processors/workflow.py 71.42% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #98758      +/-   ##
==========================================
+ Coverage   76.04%   81.20%   +5.16%     
==========================================
  Files        8531     8531              
  Lines      376551   376626      +75     
  Branches    23870    23870              
==========================================
+ Hits       286330   305845   +19515     
+ Misses      89854    70414   -19440     
  Partials      367      367              

logger.info(
"subscription_processor.alert_triggered",
extra={
"rule_id": self.alert_rule.id,
Copy link
Member

Choose a reason for hiding this comment

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

maybe worth including project or org id in here just because it's easy and might make subset examination a bit easier.

cursor[bot]

This comment was marked as outdated.

@ceorourke ceorourke merged commit 084eedc into master Sep 3, 2025
64 checks passed
@ceorourke ceorourke deleted the ceorourke/add-trigger-logs branch September 3, 2025 22:36
armenzg pushed a commit that referenced this pull request Sep 5, 2025
Add logs on both the subscription processor when a trigger's threshold
is met or resolved and in workflow engine when the workflow's trigger
conditions are met so that we can compare the two systems. Both logs
have the detector ID so we can match them up and are behind a flag with
a small subset of organizations flagged in so it won't be too much data.
Copy link

sentry-io bot commented Sep 6, 2025

Suspect Issues

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

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

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