Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1498)

Unified Diff: infra/services/builder_alerts/crbug_issues.py

Issue 2186673003: Remove logging and metrics from builder alerts code (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Also remove in chromium_try_flakes Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « infra/services/builder_alerts/alert_builder.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/services/builder_alerts/crbug_issues.py
diff --git a/infra/services/builder_alerts/crbug_issues.py b/infra/services/builder_alerts/crbug_issues.py
index e3eee1db7c169b5be4b4c2d955e959ffa688d6ee..c3966e7d2ea8f49afb686b0191aabce948f336f6 100644
--- a/infra/services/builder_alerts/crbug_issues.py
+++ b/infra/services/builder_alerts/crbug_issues.py
@@ -12,8 +12,6 @@ from apiclient.errors import HttpError
import httplib2
from oauth2client import client
-from infra_libs import ts_mon
-
# Dictionary mapping whitelisted lower-case labels to corresponding tree names.
WHITELISTED_LABELS = {'sheriff-chromium': 'chromium',
@@ -22,11 +20,6 @@ WHITELISTED_LABELS = {'sheriff-chromium': 'chromium',
BATCH_SIZE = 10
-issue_tracker_requests = ts_mon.CounterMetric(
- 'flakiness_pipeline/issue_tracker_requests',
- description='Number of requests to the issue tracker')
-
-
def _build_crbug_service(crbug_service_account): # pragma: no cover
with open(crbug_service_account) as crbug_sa_file:
service_account = json.load(crbug_sa_file)
@@ -51,9 +44,6 @@ def _list_issues(crbug_service_account):
projectId='chromium', label=whitelisted_label,
startIndex=start_index, maxResults=BATCH_SIZE, can='open')
response = request.execute(num_retries=5)
- issue_tracker_requests.increment(
- {'source': 'builder_alerts', 'operation': 'issues_list'})
- logging.debug('Incremented issue_tracker_requests counter')
# Issue Tracker may omit certain issues occasionally, so counting whether
# they add up to 'totalResults' in response is not relaible. However, we
« no previous file with comments | « infra/services/builder_alerts/alert_builder.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698