# HG changeset patch # User RhodeCode Admin # Date 2022-10-26 08:16:00 # Node ID 7b16c3db0908bfd565845f4462584a0a97942eef # Parent dcc06da1d844d223d83a3ca6f469f4b1469ed955 metrics: expose exc type for vcsserver diff --git a/vcsserver/http_main.py b/vcsserver/http_main.py --- a/vcsserver/http_main.py +++ b/vcsserver/http_main.py @@ -690,7 +690,9 @@ class HTTPApplication(object): statsd = request.registry.statsd if statsd: - statsd.incr('vcsserver_exception_total') + exc_type = "{}.{}".format(exception.__class__.__module__, exception.__class__.__name__) + statsd.incr('vcsserver_exception_total', + tags=["type:{}".format(exc_type)]) raise exception