Skip to content

Conversation

@klochek
Copy link
Contributor

@klochek klochek commented Oct 6, 2025

No description provided.

@klochek klochek requested review from a team as code owners October 6, 2025 18:46
@linear
Copy link

linear bot commented Oct 6, 2025

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 6, 2025
cursor[bot]

This comment was marked as outdated.

@codecov
Copy link

codecov bot commented Oct 6, 2025

Codecov Report

❌ Patch coverage is 77.77778% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/sentry/uptime/consumers/results_consumer.py 77.77% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #100996      +/-   ##
===========================================
+ Coverage   80.44%    81.03%   +0.58%     
===========================================
  Files        8700      8700              
  Lines      385889    385898       +9     
  Branches    24402     24402              
===========================================
+ Hits       310438    312718    +2280     
+ Misses      75100     72829    -2271     
  Partials      351       351              

if result["status"] == CHECKSTATUS_DISALLOWED_BY_ROBOTS:
try:
detector = get_detector(subscription)
logger.info("disallowed_by_robots", extra=result)
Copy link
Member

Choose a reason for hiding this comment

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

Might also be worth including this as a metrics.incr like we have elsewhere, for example:

            metrics.incr(
                "uptime.result_processor.subscription_not_found",
                sample_rate=1.0,
                tags={"uptime_region": result.get("region", "default")},
            )

It'd be good to have something like that here too

logger.info("disallowed_by_robots", extra=result)
disable_uptime_detector(detector)
except Exception as e:
logger.info("disallowed_by_robots.error", extra={"error": e, "result": result})
Copy link
Member

Choose a reason for hiding this comment

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

I think we should use logger.exception here so that we see this in sentry

@klochek klochek force-pushed the christopherklochek/new-553-allow-results_consumer-to-disable-checks-for-domains-with-a branch from a6e8554 to 9d513b3 Compare October 14, 2025 14:06
@klochek klochek merged commit 0e8abc8 into master Oct 14, 2025
67 checks passed
@klochek klochek deleted the christopherklochek/new-553-allow-results_consumer-to-disable-checks-for-domains-with-a branch October 14, 2025 15:12
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants