Skip to content

Commit

Permalink
Update uptime checker user agent (#75673)
Browse files Browse the repository at this point in the history
Updates the uptime checker `User-Agent` to match what we have described
in our [documentation
PR.](getsentry/sentry-docs#10810)
  • Loading branch information
gaprl authored Aug 6, 2024
1 parent dbfcf36 commit 5020dc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sentry/uptime/detectors/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from sentry.utils.hashlib import md5_text
from sentry.utils.locking import UnableToAcquireLock

UPTIME_USER_AGENT = "sentry.io_uptime_checker_v_1"
UPTIME_USER_AGENT = "SentryUptimeBot/1.0 (+http://docs.sentry.io/product/alerts/uptime-monitoring/)"
LAST_PROCESSED_KEY = "uptime_detector_last_processed"
SCHEDULER_LOCK_KEY = "uptime_detector_scheduler_lock"
FAILED_URL_RETRY_FREQ = timedelta(days=7)
Expand Down
2 changes: 1 addition & 1 deletion tests/sentry/uptime/detectors/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def test_failed_robots_txt(self):
def test_failed_robots_txt_user_agent(self):
url = "https://sentry.io"
test_robot_parser = RobotFileParser()
robots_txt = ["User-agent: sentry.io_uptime_checker_v_1", "Disallow: /"]
robots_txt = ["User-agent: SentryUptimeBot", "Disallow: /"]
test_robot_parser.parse(robots_txt)
with mock.patch(
"sentry.uptime.detectors.tasks.get_robots_txt_parser",
Expand Down

0 comments on commit 5020dc2

Please sign in to comment.