-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(uptime): have results consumer disable disallowed uptime detectors #100996
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
feat(uptime): have results consumer disable disallowed uptime detectors #100996
Conversation
Codecov Report❌ Patch coverage is
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) |
There was a problem hiding this comment.
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}) |
There was a problem hiding this comment.
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
a6e8554 to
9d513b3
Compare
No description provided.