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

Unified Diff: appengine/cr-buildbucket/main.py

Issue 1532713002: buildbucket: add monitoring using ts_mon (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: duration Created 5 years 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 | « appengine/cr-buildbucket/gae_ts_mon ('k') | appengine/cr-buildbucket/metrics.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/cr-buildbucket/main.py
diff --git a/appengine/cr-buildbucket/main.py b/appengine/cr-buildbucket/main.py
index cf05d805baa3c2e0e185f7d7082c6eaff48f0ca0..0144ad8a61a00b7fb17c68b501b829859b8de25f 100644
--- a/appengine/cr-buildbucket/main.py
+++ b/appengine/cr-buildbucket/main.py
@@ -14,6 +14,7 @@ from components import config
from components import ereporter2
from components import utils
import endpoints
+import gae_ts_mon
import webapp2
import api
@@ -23,8 +24,10 @@ import swarming
def create_html_app(): # pragma: no cover
"""Returns WSGI app that serves HTML pages."""
- return webapp2.WSGIApplication(
+ app = webapp2.WSGIApplication(
handlers.get_frontend_routes(), debug=utils.is_local_dev_server())
+ gae_ts_mon.initialize(app)
+ return app
def create_endpoints_app(): # pragma: no cover
@@ -35,8 +38,9 @@ def create_endpoints_app(): # pragma: no cover
def create_backend_app(): # pragma: no cover
"""Returns WSGI app for backend."""
routes = handlers.get_backend_routes() + swarming.get_routes()
- return webapp2.WSGIApplication(
- routes, debug=utils.is_local_dev_server())
+ app = webapp2.WSGIApplication(routes, debug=utils.is_local_dev_server())
+ gae_ts_mon.initialize(app)
+ return app
def initialize(): # pragma: no cover
« no previous file with comments | « appengine/cr-buildbucket/gae_ts_mon ('k') | appengine/cr-buildbucket/metrics.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698