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:
parent
85f6a432fb
commit
877b1f16b8
1 changed files with 0 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue