##// END OF EJS Templates
metrics: remove bootstrap timing, as its not usefull at all....
super-admin -
r4813:5072ed70 default
parent child Browse files
Show More
@@ -129,16 +129,10 b' def make_pyramid_app(global_config, **se'
129
129
130 # creating the app uses a connection - return it after we are done
130 # creating the app uses a connection - return it after we are done
131 meta.Session.remove()
131 meta.Session.remove()
132 statsd = StatsdClient.statsd
133
132
134 total_time = time.time() - start_time
133 total_time = time.time() - start_time
135 log.info('Pyramid app `%s` created and configured in %.2fs',
134 log.info('Pyramid app `%s` created and configured in %.2fs',
136 pyramid_app.func_name, total_time)
135 pyramid_app.func_name, total_time)
137 if statsd:
138 elapsed_time_ms = round(1000.0 * total_time) # use ms only rounded time
139 statsd.timing('rhodecode_app_bootstrap_timing', elapsed_time_ms, tags=[
140 "pyramid_app:{}".format(pyramid_app.func_name)
141 ], use_decimals=False)
142 return pyramid_app
136 return pyramid_app
143
137
144
138
General Comments 0
You need to be logged in to leave comments. Login now