##// END OF EJS Templates
metrics: expose more metrics via statsd...
super-admin -
r4801:80a69a8f default
parent child Browse files
Show More
@@ -177,6 +177,10 b' def exception_view(exc, request):'
177 177 exc_info = exc.exc_info()
178 178 store_exception(id(exc_info), exc_info, prefix='rhodecode-api')
179 179
180 statsd = request.registry.statsd
181 if statsd:
182 statsd.incr('rhodecode_exception', tags=["api"])
183
180 184 return jsonrpc_error(request, fault_message, rpc_id)
181 185
182 186
@@ -170,12 +170,16 b' def task_retry_signal('
170 170 def task_failure_signal(
171 171 task_id, exception, args, kwargs, traceback, einfo, **kargs):
172 172 from rhodecode.lib.exc_tracking import store_exception
173 from rhodecode.lib.statsd_client import StatsdClient
173 174
174 175 meta.Session.remove()
175 176
176 177 # simulate sys.exc_info()
177 178 exc_info = (einfo.type, einfo.exception, einfo.tb)
178 179 store_exception(id(exc_info), exc_info, prefix='rhodecode-celery')
180 statsd = StatsdClient.statsd
181 if statsd:
182 statsd.incr('rhodecode_exception', tags=["celery"])
179 183
180 184 closer = celery_app.conf['PYRAMID_CLOSER']
181 185 if closer:
General Comments 0
You need to be logged in to leave comments. Login now