# HG changeset patch # User RhodeCode Admin # Date 2022-10-27 13:31:18 # Node ID 5072ed70d286dbfb940b39e65bc08645cd956e8d # Parent 8b0fdb9922c9a17e3645226b5c301173884aabaf metrics: remove bootstrap timing, as its not usefull at all. Counter resets on each start we don't get any good metrics out of that diff --git a/rhodecode/config/middleware.py b/rhodecode/config/middleware.py --- a/rhodecode/config/middleware.py +++ b/rhodecode/config/middleware.py @@ -129,16 +129,10 @@ def make_pyramid_app(global_config, **se # creating the app uses a connection - return it after we are done meta.Session.remove() - statsd = StatsdClient.statsd total_time = time.time() - start_time log.info('Pyramid app `%s` created and configured in %.2fs', pyramid_app.func_name, total_time) - if statsd: - elapsed_time_ms = round(1000.0 * total_time) # use ms only rounded time - statsd.timing('rhodecode_app_bootstrap_timing', elapsed_time_ms, tags=[ - "pyramid_app:{}".format(pyramid_app.func_name) - ], use_decimals=False) return pyramid_app