metrics: further adjustments.
- reduce cardinality - added push/pull
This commit is contained in:
parent
b4d077597a
commit
8e00aec5f4
3 changed files with 14 additions and 5 deletions
|
|
@ -182,7 +182,7 @@ def error_handler(exception, request):
|
|||
|
||||
statsd = request.registry.statsd
|
||||
if statsd and base_response.status_code > 499:
|
||||
statsd.incr('rhodecode_exception')
|
||||
statsd.incr('rhodecode_exception', tags=["code:{}".format(base_response.status_code)])
|
||||
|
||||
error_explanation = base_response.explanation or str(base_response)
|
||||
if base_response.status_code == 404:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue