Skip to content

feat(alerts): Add support for log type alert #93043

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

shruthilayaj
Copy link
Member

Add spans and logs to valid event types for performance alerts.
Update entity subscription to use the correct trace item type in
SearchResolver

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 6, 2025
Copy link

codecov bot commented Jun 6, 2025

Codecov Report

Attention: Patch coverage is 95.91837% with 2 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/snuba/snuba_query_validator.py 71.42% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master   #93043    +/-   ##
========================================
  Coverage   82.87%   82.87%            
========================================
  Files       10295    10295            
  Lines      590832   591000   +168     
  Branches    22980    22980            
========================================
+ Hits       489647   489802   +155     
- Misses      99751    99764    +13     
  Partials     1434     1434            

@shruthilayaj shruthilayaj marked this pull request as ready for review June 6, 2025 20:14
@shruthilayaj shruthilayaj requested a review from a team as a code owner June 6, 2025 20:14

assert (
createSubscriptionRequest.time_series_request.meta.trace_item_type
== TraceItemType.TRACE_ITEM_TYPE_LOG
Copy link
Member Author

Choose a reason for hiding this comment

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

making sure snuba subscription is created with trace item type log


assert (
createSubscriptionRequest.time_series_request.meta.trace_item_type
== TraceItemType.TRACE_ITEM_TYPE_SPAN
Copy link
Member Author

Choose a reason for hiding this comment

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

making sure snuba subscription is created with trace item type span

Copy link
Member

@ceorourke ceorourke left a comment

Choose a reason for hiding this comment

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

lgtm, nice tests!

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