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
This commit is contained in:
RhodeCode Admin 2022-10-27 15:31:18 +02:00
parent 85f6a432fb
commit 877b1f16b8

View file

@ -129,16 +129,10 @@ def make_pyramid_app(global_config, **settings):
# 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