)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6676,"name":"zqfan","email":"aji.zqfan@gmail.com","username":"aji-zqfan"},"change_message_id":"1ca1e648ad7759eb5be44da361832aeee8e262b2","unresolved":false,"context_lines":[{"line_number":27,"context_line":"The change to enable Zaqar profile exchange in ceilometer is:"},{"line_number":28,"context_line":"Ib94f5d4f90956342d5b1ac183ca70179de0505f7 ."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Partially-implements BP: osprofiler"},{"line_number":31,"context_line":"Change-Id: I32565de6c447cd5e95a0ef54a9fbd4e571c2d820"},{"line_number":32,"context_line":"Signed-off-by: Zhi Yan Liu \u003czhiyanl@cn.ibm.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"3a961159_872e2ef9","line":30,"updated":"2014-12-26 10:56:58.000000000","message":"Since we no longer maintain config options by ourselves and you\u0027re adding new options, please add commit tag: DocImpact","commit_id":"e3ac022a577812a3f55663b19955d3c5ff2d75de"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"17a3540450e5dd12bff8db40a8eeeca2355c7044","unresolved":false,"context_lines":[{"line_number":27,"context_line":"The change to enable Zaqar profile exchange in ceilometer is:"},{"line_number":28,"context_line":"Ib94f5d4f90956342d5b1ac183ca70179de0505f7 ."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Partially-implements BP: osprofiler"},{"line_number":31,"context_line":"Change-Id: I32565de6c447cd5e95a0ef54a9fbd4e571c2d820"},{"line_number":32,"context_line":"Signed-off-by: Zhi Yan Liu \u003czhiyanl@cn.ibm.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"3a961159_110978dd","line":30,"in_reply_to":"3a961159_872e2ef9","updated":"2014-12-30 04:07:14.000000000","message":"Sure","commit_id":"e3ac022a577812a3f55663b19955d3c5ff2d75de"}],"tests/unit/common/storage/test_utils.py":[{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"d70ea14c70a48bf0b294369485f4d4bcb0d84965","unresolved":false,"context_lines":[{"line_number":23,"context_line":"@ddt.ddt"},{"line_number":24,"context_line":"class TestUtils(testing.TestBase):"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def setUp(self):"},{"line_number":27,"context_line":"        super(TestUtils, self).setUp()"},{"line_number":28,"context_line":"        self.conf.register_opts(bootstrap._GENERAL_OPTIONS)"},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_d5b6b589","side":"PARENT","line":26,"updated":"2014-12-18 18:44:33.000000000","message":"Is removing the environment setup necessary?","commit_id":"3bc7f522aeb872ea0b9dc2d712c6dcaa4189ddd1"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"dd70ce1bab6611416ca35f746eb9c79239a046a6","unresolved":false,"context_lines":[{"line_number":23,"context_line":"@ddt.ddt"},{"line_number":24,"context_line":"class TestUtils(testing.TestBase):"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def setUp(self):"},{"line_number":27,"context_line":"        super(TestUtils, self).setUp()"},{"line_number":28,"context_line":"        self.conf.register_opts(bootstrap._GENERAL_OPTIONS)"},{"line_number":29,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_f7956733","side":"PARENT","line":26,"in_reply_to":"3a961159_d5b6b589","updated":"2014-12-19 05:34:38.000000000","message":"It\u0027s better to have IMO, it\u0027s duplicated with setUp() of base class.","commit_id":"3bc7f522aeb872ea0b9dc2d712c6dcaa4189ddd1"}],"tests/unit/queues/transport/wsgi/test_v1_0.py":[{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"d70ea14c70a48bf0b294369485f4d4bcb0d84965","unresolved":false,"context_lines":[{"line_number":109,"context_line":"    def test_head(self):"},{"line_number":110,"context_line":"        response \u003d self.simulate_head(\u0027/v1/health\u0027)"},{"line_number":111,"context_line":"        self.assertEqual(self.srmock.status, falcon.HTTP_204)"},{"line_number":112,"context_line":"        self.assertEqual(list(response), [])"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_909b5bc8","line":112,"updated":"2014-12-18 18:44:33.000000000","message":"Why is this change needed?","commit_id":"1b38e9c1b4b2eb092cb8f99ffe81a50f4b3e063d"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"dd70ce1bab6611416ca35f746eb9c79239a046a6","unresolved":false,"context_lines":[{"line_number":109,"context_line":"    def test_head(self):"},{"line_number":110,"context_line":"        response \u003d self.simulate_head(\u0027/v1/health\u0027)"},{"line_number":111,"context_line":"        self.assertEqual(self.srmock.status, falcon.HTTP_204)"},{"line_number":112,"context_line":"        self.assertEqual(list(response), [])"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_77cfb756","line":112,"in_reply_to":"3a961159_909b5bc8","updated":"2014-12-19 05:34:38.000000000","message":"Because with osprofiler\u0027s wsgi middleware, empty result of \u0027/v1/health\u0027 will be wrapped by webob.response.EmptyResponse, it\u0027s an iterator.\n\nThe same reason for the change in v1.1 test case.","commit_id":"1b38e9c1b4b2eb092cb8f99ffe81a50f4b3e063d"}],"tests/unit/queues/transport/wsgi/test_v1_1.py":[{"author":{"_account_id":6413,"name":"Victoria Martinez de la Cruz","email":"victoria@redhat.com","username":"vkmc"},"change_message_id":"d70ea14c70a48bf0b294369485f4d4bcb0d84965","unresolved":false,"context_lines":[{"line_number":122,"context_line":"    def test_head(self):"},{"line_number":123,"context_line":"        response \u003d self.simulate_head(\u0027/v1.1/ping\u0027)"},{"line_number":124,"context_line":"        self.assertEqual(self.srmock.status, falcon.HTTP_204)"},{"line_number":125,"context_line":"        self.assertEqual(list(response), [])"},{"line_number":126,"context_line":""},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"class TestHealthMongoDB(v1_1.TestHealthMongoDB):"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_d0a5e304","line":125,"updated":"2014-12-18 18:44:33.000000000","message":"Why is this change needed?","commit_id":"1b38e9c1b4b2eb092cb8f99ffe81a50f4b3e063d"}],"zaqar/bootstrap.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"3849c409e791d191aacda58b03e32cc58b3c7126","unresolved":false,"context_lines":[{"line_number":113,"context_line":"            LOG.debug(u\u0027Storage pooling enabled\u0027)"},{"line_number":114,"context_line":"            storage_driver \u003d pooling.DataDriver(self.conf, self.cache,"},{"line_number":115,"context_line":"                                                self.control)"},{"line_number":116,"context_line":"            if self.conf.profiler.enabled and self.conf.profiler.trace_pooling:"},{"line_number":117,"context_line":"                storage_driver \u003d profiler.trace_cls(\"pooling_data_\""},{"line_number":118,"context_line":"                                                    \"driver\")(storage_driver)"},{"line_number":119,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_65dd0ae0","line":116,"updated":"2015-03-13 21:42:19.000000000","message":"You may want to move this right before the return so we can profile storage drivers when pooling is not enabled.... unless this is done elsewhere.","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"651c9f29565129ddf703a0899b5fa4d408f266b2","unresolved":false,"context_lines":[{"line_number":113,"context_line":"            LOG.debug(u\u0027Storage pooling enabled\u0027)"},{"line_number":114,"context_line":"            storage_driver \u003d pooling.DataDriver(self.conf, self.cache,"},{"line_number":115,"context_line":"                                                self.control)"},{"line_number":116,"context_line":"            if self.conf.profiler.enabled and self.conf.profiler.trace_pooling:"},{"line_number":117,"context_line":"                storage_driver \u003d profiler.trace_cls(\"pooling_data_\""},{"line_number":118,"context_line":"                                                    \"driver\")(storage_driver)"},{"line_number":119,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_9b50440c","line":116,"in_reply_to":"9a80dd14_65dd0ae0","updated":"2015-03-17 05:44:57.000000000","message":"Yes, it is done in load_storage_driver() in https://review.openstack.org/#/c/141356/13/zaqar/storage/utils.py . I think it would be better to separate two responsibilities of them - tracing pooling and tracing storage to their dedicated place based on their own enablement option/flag. And from outside code, load_storage_driver() will be better to take care profile stuff from its internal, it\u0027s more self-contain. IMO.","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"9d455b166d8a498fb4d831663160604728813089","unresolved":false,"context_lines":[{"line_number":113,"context_line":"            LOG.debug(u\u0027Storage pooling enabled\u0027)"},{"line_number":114,"context_line":"            storage_driver \u003d pooling.DataDriver(self.conf, self.cache,"},{"line_number":115,"context_line":"                                                self.control)"},{"line_number":116,"context_line":"            if self.conf.profiler.enabled and self.conf.profiler.trace_pooling:"},{"line_number":117,"context_line":"                storage_driver \u003d profiler.trace_cls(\"pooling_data_\""},{"line_number":118,"context_line":"                                                    \"driver\")(storage_driver)"},{"line_number":119,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_cfa57f48","line":116,"in_reply_to":"9a80dd14_9b50440c","updated":"2015-03-17 16:03:57.000000000","message":"mmh, ok. We can keep it like that for now.","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"de69b875cd415614f97f21df88786feb2124c571","unresolved":false,"context_lines":[{"line_number":84,"context_line":"            LOG.debug(u\u0027Storage pooling enabled\u0027)"},{"line_number":85,"context_line":"            storage_driver \u003d pooling.DataDriver(self.conf, self.cache,"},{"line_number":86,"context_line":"                                                self.control)"},{"line_number":87,"context_line":"            if self.conf.profiler.enabled:"},{"line_number":88,"context_line":"                storage_driver \u003d profiler.trace_cls(\"pooling_data_\""},{"line_number":89,"context_line":"                                                    \"driver\")(storage_driver)"},{"line_number":90,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":22,"id":"7af24918_fefda8b1","line":87,"updated":"2016-03-04 02:29:22.000000000","message":"Does this mean now the profiler only support pooling mode?","commit_id":"ab1b903f155f8c4ab8a2493752abc5aa7c41b4ae"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"5baf9c76f226d0622a9a616ae03a891e11dbcf80","unresolved":false,"context_lines":[{"line_number":84,"context_line":"            LOG.debug(u\u0027Storage pooling enabled\u0027)"},{"line_number":85,"context_line":"            storage_driver \u003d pooling.DataDriver(self.conf, self.cache,"},{"line_number":86,"context_line":"                                                self.control)"},{"line_number":87,"context_line":"            if self.conf.profiler.enabled:"},{"line_number":88,"context_line":"                storage_driver \u003d profiler.trace_cls(\"pooling_data_\""},{"line_number":89,"context_line":"                                                    \"driver\")(storage_driver)"},{"line_number":90,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba0121b8_b80b75d5","line":87,"in_reply_to":"7af24918_fefda8b1","updated":"2016-03-31 08:20:15.000000000","message":"No, we have traced every Controller in both storage and control layer for non-pooling mode in this patch. \nHere is only used for pooling layer.","commit_id":"ab1b903f155f8c4ab8a2493752abc5aa7c41b4ae"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"405c7c4152f0aac6a2c4c4df8979d28cfd128839","unresolved":false,"context_lines":[{"line_number":52,"context_line":"            self.conf.register_opts(opts, group\u003dgroup)"},{"line_number":53,"context_line":"        profiler_opts.set_defaults(self.conf)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        # TODO(wangxiyuan): Now profiler only support wsgi, add it to websocket"},{"line_number":56,"context_line":"        profile.setup(self.conf, \u0027Zaqar-server\u0027, socket.gethostname())"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"        self.driver_conf \u003d self.conf[configs._DRIVER_GROUP]"}],"source_content_type":"text/x-python","patch_set":37,"id":"9a629dbe_be14fd4c","line":55,"updated":"2016-11-10 22:04:08.000000000","message":"It\u0027s confusing me. Do you mean osprofiler doesn\u0027t support websocket, or the file profiler.py doesn\u0027t support websocket. If osprofiler doesn\u0027t support websocket, then I would prefer to take it as a \"NOTE\" not \"TODO\", since I don\u0027t think it\u0027s a TODO item for us.","commit_id":"65a838252977adc3778e042ec5cd1d2f1aef8ec2"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"619e44f274746379b4dae3c2f70cd114835a7b42","unresolved":false,"context_lines":[{"line_number":52,"context_line":"            self.conf.register_opts(opts, group\u003dgroup)"},{"line_number":53,"context_line":"        profiler_opts.set_defaults(self.conf)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        # TODO(wangxiyuan): Now profiler only support wsgi, add it to websocket"},{"line_number":56,"context_line":"        profile.setup(self.conf, \u0027Zaqar-server\u0027, socket.gethostname())"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"        self.driver_conf \u003d self.conf[configs._DRIVER_GROUP]"}],"source_content_type":"text/x-python","patch_set":37,"id":"9a629dbe_24bff661","line":55,"in_reply_to":"9a629dbe_be14fd4c","updated":"2016-11-11 07:19:47.000000000","message":"zaqar doesn\u0027t support websocket.","commit_id":"65a838252977adc3778e042ec5cd1d2f1aef8ec2"}],"zaqar/common/configs.py":[{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"405c7c4152f0aac6a2c4c4df8979d28cfd128839","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":"_PROFILER_OPTIONS \u003d ["},{"line_number":75,"context_line":"    cfg.BoolOpt(\"trace_wsgi_transport\", default\u003dFalse,"},{"line_number":76,"context_line":"                help\u003d\"If False doesn\u0027t trace any transport requests.\"),"},{"line_number":77,"context_line":"    cfg.BoolOpt(\"trace_storage\", default\u003dFalse,"},{"line_number":78,"context_line":"                help\u003d\"If False doesn\u0027t trace any storage requests.\"),"},{"line_number":79,"context_line":"    cfg.BoolOpt(\"trace_control\", default\u003dFalse,"}],"source_content_type":"text/x-python","patch_set":37,"id":"9a629dbe_64d65829","line":76,"updated":"2016-11-10 22:04:08.000000000","message":"It would be nice to mention that websocket is not supported now due to the limitation of osprofiler.","commit_id":"65a838252977adc3778e042ec5cd1d2f1aef8ec2"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"619e44f274746379b4dae3c2f70cd114835a7b42","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":"_PROFILER_OPTIONS \u003d ["},{"line_number":75,"context_line":"    cfg.BoolOpt(\"trace_wsgi_transport\", default\u003dFalse,"},{"line_number":76,"context_line":"                help\u003d\"If False doesn\u0027t trace any transport requests.\"),"},{"line_number":77,"context_line":"    cfg.BoolOpt(\"trace_storage\", default\u003dFalse,"},{"line_number":78,"context_line":"                help\u003d\"If False doesn\u0027t trace any storage requests.\"),"},{"line_number":79,"context_line":"    cfg.BoolOpt(\"trace_control\", default\u003dFalse,"}],"source_content_type":"text/x-python","patch_set":37,"id":"9a629dbe_671f305b","line":76,"in_reply_to":"9a629dbe_64d65829","updated":"2016-11-11 07:19:47.000000000","message":"Done","commit_id":"65a838252977adc3778e042ec5cd1d2f1aef8ec2"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"405c7c4152f0aac6a2c4c4df8979d28cfd128839","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                help\u003d\"If False doesn\u0027t trace any transport requests.\"),"},{"line_number":77,"context_line":"    cfg.BoolOpt(\"trace_storage\", default\u003dFalse,"},{"line_number":78,"context_line":"                help\u003d\"If False doesn\u0027t trace any storage requests.\"),"},{"line_number":79,"context_line":"    cfg.BoolOpt(\"trace_control\", default\u003dFalse,"},{"line_number":80,"context_line":"                help\u003d\"If False doesn\u0027t trace any control requests.\")"},{"line_number":81,"context_line":"]"},{"line_number":82,"context_line":""}],"source_content_type":"text/x-python","patch_set":37,"id":"9a629dbe_c93d7dde","line":79,"updated":"2016-11-10 22:04:08.000000000","message":"TBH, the name trace_storage and trace_control, really confuse me. Let me explain a bit. IMHO, the osprofiler is targeting to track a request from different layers. In Zaqar, generally we have two layers: transport and storage. And for storage, actually, we have management store layer and message store layer. Obviously the name trace_storage and trace_control come from https://github.com/openstack/zaqar/blob/master/zaqar/storage/mongodb/driver.py#L69 and https://github.com/openstack/zaqar/blob/master/zaqar/storage/mongodb/driver.py#L212 \n\nIt\u0027s ok for Zaqar developer. But it will confuse the operator. I would prefer to use \u0027trace_message_store\u0027 and \u0027trace_management_store\u0027, which are the name we\u0027re using in config file.","commit_id":"65a838252977adc3778e042ec5cd1d2f1aef8ec2"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"619e44f274746379b4dae3c2f70cd114835a7b42","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                help\u003d\"If False doesn\u0027t trace any transport requests.\"),"},{"line_number":77,"context_line":"    cfg.BoolOpt(\"trace_storage\", default\u003dFalse,"},{"line_number":78,"context_line":"                help\u003d\"If False doesn\u0027t trace any storage requests.\"),"},{"line_number":79,"context_line":"    cfg.BoolOpt(\"trace_control\", default\u003dFalse,"},{"line_number":80,"context_line":"                help\u003d\"If False doesn\u0027t trace any control requests.\")"},{"line_number":81,"context_line":"]"},{"line_number":82,"context_line":""}],"source_content_type":"text/x-python","patch_set":37,"id":"9a629dbe_472cec98","line":79,"in_reply_to":"9a629dbe_c93d7dde","updated":"2016-11-11 07:19:47.000000000","message":"Done","commit_id":"65a838252977adc3778e042ec5cd1d2f1aef8ec2"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"ae557fdf75af1d6321b070a490ccd17650fea6df","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                help\u003d\"If False doesn\u0027t trace any transport requests.\""},{"line_number":77,"context_line":"                     \"It doesn\u0027t work for websocket now.\"),"},{"line_number":78,"context_line":"    cfg.BoolOpt(\"trace_message_store\", default\u003dFalse,"},{"line_number":79,"context_line":"                help\u003d\"If False doesn\u0027t trace any storage requests.\"),"},{"line_number":80,"context_line":"    cfg.BoolOpt(\"trace_management_store\", default\u003dFalse,"},{"line_number":81,"context_line":"                help\u003d\"If False doesn\u0027t trace any control requests.\")"},{"line_number":82,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":39,"id":"9a629dbe_d1d6c426","line":79,"updated":"2016-11-14 21:35:33.000000000","message":"It would be nice if you can update the help message as well.","commit_id":"b006534292e2c244c07fa9a22aaf96d1b574214e"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"ae557fdf75af1d6321b070a490ccd17650fea6df","unresolved":false,"context_lines":[{"line_number":78,"context_line":"    cfg.BoolOpt(\"trace_message_store\", default\u003dFalse,"},{"line_number":79,"context_line":"                help\u003d\"If False doesn\u0027t trace any storage requests.\"),"},{"line_number":80,"context_line":"    cfg.BoolOpt(\"trace_management_store\", default\u003dFalse,"},{"line_number":81,"context_line":"                help\u003d\"If False doesn\u0027t trace any control requests.\")"},{"line_number":82,"context_line":"]"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"_PROFILER_GROUP \u003d \"profiler\""}],"source_content_type":"text/x-python","patch_set":39,"id":"9a629dbe_f1dbc84d","line":81,"updated":"2016-11-14 21:35:33.000000000","message":"ditto","commit_id":"b006534292e2c244c07fa9a22aaf96d1b574214e"}],"zaqar/profile.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"3849c409e791d191aacda58b03e32cc58b3c7126","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"_PROFILER_OPTIONS \u003d ["},{"line_number":31,"context_line":"    cfg.BoolOpt(\"enabled\", default\u003dFalse,"},{"line_number":32,"context_line":"                help\u003d(\u0027If False fully disable profiling feature.\u0027)),"},{"line_number":33,"context_line":"    cfg.BoolOpt(\"trace_wsgi\", default\u003dTrue,"},{"line_number":34,"context_line":"                help\u003d(\"If False doesn\u0027t trace wsgi transport requests.\")),"},{"line_number":35,"context_line":"    cfg.BoolOpt(\"trace_mongodb\", default\u003dFalse,"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_48a73b0b","line":32,"updated":"2015-03-13 21:42:19.000000000","message":"Can we mention that this shouldn\u0027t be used in production environments?\n\nI don\u0027t want people enabling this and using wrapping falcon within webob in a production env","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"651c9f29565129ddf703a0899b5fa4d408f266b2","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"_PROFILER_OPTIONS \u003d ["},{"line_number":31,"context_line":"    cfg.BoolOpt(\"enabled\", default\u003dFalse,"},{"line_number":32,"context_line":"                help\u003d(\u0027If False fully disable profiling feature.\u0027)),"},{"line_number":33,"context_line":"    cfg.BoolOpt(\"trace_wsgi\", default\u003dTrue,"},{"line_number":34,"context_line":"                help\u003d(\"If False doesn\u0027t trace wsgi transport requests.\")),"},{"line_number":35,"context_line":"    cfg.BoolOpt(\"trace_mongodb\", default\u003dFalse,"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_5b8b2c68","line":32,"in_reply_to":"9a80dd14_48a73b0b","updated":"2015-03-17 05:44:57.000000000","message":"OK, Will do.\n\nHowever, to me, osprofiler works well in our dev/test runtime, it\u0027s a small production environment. Operator is easier to handle performance issue on time instead of trying to re-produce the issue in staging/debug environment (if he has luck to catch it).","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"9d455b166d8a498fb4d831663160604728813089","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"_PROFILER_OPTIONS \u003d ["},{"line_number":31,"context_line":"    cfg.BoolOpt(\"enabled\", default\u003dFalse,"},{"line_number":32,"context_line":"                help\u003d(\u0027If False fully disable profiling feature.\u0027)),"},{"line_number":33,"context_line":"    cfg.BoolOpt(\"trace_wsgi\", default\u003dTrue,"},{"line_number":34,"context_line":"                help\u003d(\"If False doesn\u0027t trace wsgi transport requests.\")),"},{"line_number":35,"context_line":"    cfg.BoolOpt(\"trace_mongodb\", default\u003dFalse,"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_4a725dae","line":32,"in_reply_to":"9a80dd14_5b8b2c68","updated":"2015-03-17 16:03:57.000000000","message":"Right, however, there are serious performance impacts caused by enabling this. One is that it doesn\u0027t use falcon framework, which is our recommended framework but webob.","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"3849c409e791d191aacda58b03e32cc58b3c7126","unresolved":false,"context_lines":[{"line_number":32,"context_line":"                help\u003d(\u0027If False fully disable profiling feature.\u0027)),"},{"line_number":33,"context_line":"    cfg.BoolOpt(\"trace_wsgi\", default\u003dTrue,"},{"line_number":34,"context_line":"                help\u003d(\"If False doesn\u0027t trace wsgi transport requests.\")),"},{"line_number":35,"context_line":"    cfg.BoolOpt(\"trace_mongodb\", default\u003dFalse,"},{"line_number":36,"context_line":"                help\u003d(\"If False doesn\u0027t trace mongodb storage requests.\")),"},{"line_number":37,"context_line":"    cfg.BoolOpt(\"trace_redis\", default\u003dFalse,"},{"line_number":38,"context_line":"                help\u003d(\"If False doesn\u0027t trace redis storage requests.\")),"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_e5be5a64","line":35,"updated":"2015-03-13 21:42:19.000000000","message":"Do we really need all this granularity? Can we have just 1 configuration option that enables/disables storage profiling?","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"13ff07c066e97cf964e1d7a6e8a090ba2e2f5d36","unresolved":false,"context_lines":[{"line_number":32,"context_line":"                help\u003d(\u0027If False fully disable profiling feature.\u0027)),"},{"line_number":33,"context_line":"    cfg.BoolOpt(\"trace_wsgi\", default\u003dTrue,"},{"line_number":34,"context_line":"                help\u003d(\"If False doesn\u0027t trace wsgi transport requests.\")),"},{"line_number":35,"context_line":"    cfg.BoolOpt(\"trace_mongodb\", default\u003dFalse,"},{"line_number":36,"context_line":"                help\u003d(\"If False doesn\u0027t trace mongodb storage requests.\")),"},{"line_number":37,"context_line":"    cfg.BoolOpt(\"trace_redis\", default\u003dFalse,"},{"line_number":38,"context_line":"                help\u003d(\"If False doesn\u0027t trace redis storage requests.\")),"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_5559028d","line":35,"in_reply_to":"9a80dd14_8a91b59c","updated":"2015-03-18 04:23:05.000000000","message":"OK, will change to go this way at the moment.","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"9d455b166d8a498fb4d831663160604728813089","unresolved":false,"context_lines":[{"line_number":32,"context_line":"                help\u003d(\u0027If False fully disable profiling feature.\u0027)),"},{"line_number":33,"context_line":"    cfg.BoolOpt(\"trace_wsgi\", default\u003dTrue,"},{"line_number":34,"context_line":"                help\u003d(\"If False doesn\u0027t trace wsgi transport requests.\")),"},{"line_number":35,"context_line":"    cfg.BoolOpt(\"trace_mongodb\", default\u003dFalse,"},{"line_number":36,"context_line":"                help\u003d(\"If False doesn\u0027t trace mongodb storage requests.\")),"},{"line_number":37,"context_line":"    cfg.BoolOpt(\"trace_redis\", default\u003dFalse,"},{"line_number":38,"context_line":"                help\u003d(\"If False doesn\u0027t trace redis storage requests.\")),"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_8a91b59c","line":35,"in_reply_to":"9a80dd14_db29dc38","updated":"2015-03-17 16:03:57.000000000","message":"It\u0027s not that easy to maintain, that\u0027s my main concern. For example, you\u0027re adding sqlalchemy here and we\u0027re planning to completely remove it from the data plane.\n\nIn this case, I\u0027d really prefer to just use 1 option for now, we can add the other options later on if we feel like it.","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"651c9f29565129ddf703a0899b5fa4d408f266b2","unresolved":false,"context_lines":[{"line_number":32,"context_line":"                help\u003d(\u0027If False fully disable profiling feature.\u0027)),"},{"line_number":33,"context_line":"    cfg.BoolOpt(\"trace_wsgi\", default\u003dTrue,"},{"line_number":34,"context_line":"                help\u003d(\"If False doesn\u0027t trace wsgi transport requests.\")),"},{"line_number":35,"context_line":"    cfg.BoolOpt(\"trace_mongodb\", default\u003dFalse,"},{"line_number":36,"context_line":"                help\u003d(\"If False doesn\u0027t trace mongodb storage requests.\")),"},{"line_number":37,"context_line":"    cfg.BoolOpt(\"trace_redis\", default\u003dFalse,"},{"line_number":38,"context_line":"                help\u003d(\"If False doesn\u0027t trace redis storage requests.\")),"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_db29dc38","line":35,"in_reply_to":"9a80dd14_e5be5a64","updated":"2015-03-17 05:44:57.000000000","message":"IMHO, I think this granularity is more flexible to operator and it\u0027s really hurtless. Or any disadvantage I missed?","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"3849c409e791d191aacda58b03e32cc58b3c7126","unresolved":false,"context_lines":[{"line_number":38,"context_line":"                help\u003d(\"If False doesn\u0027t trace redis storage requests.\")),"},{"line_number":39,"context_line":"    cfg.BoolOpt(\"trace_sqlalchemy\", default\u003dFalse,"},{"line_number":40,"context_line":"                help\u003d(\"If False doesn\u0027t trace sqlalchemy storage requests.\")),"},{"line_number":41,"context_line":"    cfg.BoolOpt(\"trace_pooling\", default\u003dFalse,"},{"line_number":42,"context_line":"                help\u003d(\"If False doesn\u0027t trace storage pooling requests.\")),"},{"line_number":43,"context_line":"    cfg.StrOpt(\"hmac_keys\","},{"line_number":44,"context_line":"               help\u003d(\"Available HMAC keys to use for en/decrypting context \""}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_45b80675","line":41,"updated":"2015-03-13 21:42:19.000000000","message":"same here","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"651c9f29565129ddf703a0899b5fa4d408f266b2","unresolved":false,"context_lines":[{"line_number":38,"context_line":"                help\u003d(\"If False doesn\u0027t trace redis storage requests.\")),"},{"line_number":39,"context_line":"    cfg.BoolOpt(\"trace_sqlalchemy\", default\u003dFalse,"},{"line_number":40,"context_line":"                help\u003d(\"If False doesn\u0027t trace sqlalchemy storage requests.\")),"},{"line_number":41,"context_line":"    cfg.BoolOpt(\"trace_pooling\", default\u003dFalse,"},{"line_number":42,"context_line":"                help\u003d(\"If False doesn\u0027t trace storage pooling requests.\")),"},{"line_number":43,"context_line":"    cfg.StrOpt(\"hmac_keys\","},{"line_number":44,"context_line":"               help\u003d(\"Available HMAC keys to use for en/decrypting context \""}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_9bd3e45e","line":41,"in_reply_to":"9a80dd14_45b80675","updated":"2015-03-17 05:44:57.000000000","message":"The implementation of pooling and particular storage backends are different and dedicated with their own concept, IMO this option is probably useful for operator, he could just trace/profile the execution pipe with a particular storage but whole of them in production environment when a performance issue couldn\u0027t be reproduced in staging/debug environment.","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"13ff07c066e97cf964e1d7a6e8a090ba2e2f5d36","unresolved":false,"context_lines":[{"line_number":38,"context_line":"                help\u003d(\"If False doesn\u0027t trace redis storage requests.\")),"},{"line_number":39,"context_line":"    cfg.BoolOpt(\"trace_sqlalchemy\", default\u003dFalse,"},{"line_number":40,"context_line":"                help\u003d(\"If False doesn\u0027t trace sqlalchemy storage requests.\")),"},{"line_number":41,"context_line":"    cfg.BoolOpt(\"trace_pooling\", default\u003dFalse,"},{"line_number":42,"context_line":"                help\u003d(\"If False doesn\u0027t trace storage pooling requests.\")),"},{"line_number":43,"context_line":"    cfg.StrOpt(\"hmac_keys\","},{"line_number":44,"context_line":"               help\u003d(\"Available HMAC keys to use for en/decrypting context \""}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_b5579e26","line":41,"in_reply_to":"9a80dd14_6ac2c187","updated":"2015-03-18 04:23:05.000000000","message":"ditto","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"9d455b166d8a498fb4d831663160604728813089","unresolved":false,"context_lines":[{"line_number":38,"context_line":"                help\u003d(\"If False doesn\u0027t trace redis storage requests.\")),"},{"line_number":39,"context_line":"    cfg.BoolOpt(\"trace_sqlalchemy\", default\u003dFalse,"},{"line_number":40,"context_line":"                help\u003d(\"If False doesn\u0027t trace sqlalchemy storage requests.\")),"},{"line_number":41,"context_line":"    cfg.BoolOpt(\"trace_pooling\", default\u003dFalse,"},{"line_number":42,"context_line":"                help\u003d(\"If False doesn\u0027t trace storage pooling requests.\")),"},{"line_number":43,"context_line":"    cfg.StrOpt(\"hmac_keys\","},{"line_number":44,"context_line":"               help\u003d(\"Available HMAC keys to use for en/decrypting context \""}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_6ac2c187","line":41,"in_reply_to":"9a80dd14_9bd3e45e","updated":"2015-03-17 16:03:57.000000000","message":"If trace is enabled and pooling is enabled then trace it. Just trying to keep this simple for now, we can add extra granularity later if we need it.","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"3849c409e791d191aacda58b03e32cc58b3c7126","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    profiler_conf \u003d conf[_PROFILER_GROUP]"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    if profiler_conf.enabled:"},{"line_number":69,"context_line":"        _notifier \u003d notifier.create("},{"line_number":70,"context_line":"            \"Messaging\", messaging, {},"},{"line_number":71,"context_line":"            messaging.get_transport(conf, aliases\u003d_TRANSPORT_ALIASES),"},{"line_number":72,"context_line":"            \"zaqar\", binary, host)"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_e54c9aa0","line":69,"updated":"2015-03-13 21:42:19.000000000","message":"Is this always required? Is it possible to have local profiling instead of sending things to rally?","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"13ff07c066e97cf964e1d7a6e8a090ba2e2f5d36","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    profiler_conf \u003d conf[_PROFILER_GROUP]"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    if profiler_conf.enabled:"},{"line_number":69,"context_line":"        _notifier \u003d notifier.create("},{"line_number":70,"context_line":"            \"Messaging\", messaging, {},"},{"line_number":71,"context_line":"            messaging.get_transport(conf, aliases\u003d_TRANSPORT_ALIASES),"},{"line_number":72,"context_line":"            \"zaqar\", binary, host)"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_f570360a","line":69,"in_reply_to":"9a80dd14_2a57e9cb","updated":"2015-03-18 04:23:05.000000000","message":"NP. I\u0027m not fully understand your point about uploading to rally, AFAIK I don\u0027t think rally is related with the profiling stuff at the moment. Osprofiler has own mechanism and implementation - backend storing and trace data consuming. Therefor, I don\u0027t know if there is a proposal about this kind of idea.","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"9d455b166d8a498fb4d831663160604728813089","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    profiler_conf \u003d conf[_PROFILER_GROUP]"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    if profiler_conf.enabled:"},{"line_number":69,"context_line":"        _notifier \u003d notifier.create("},{"line_number":70,"context_line":"            \"Messaging\", messaging, {},"},{"line_number":71,"context_line":"            messaging.get_transport(conf, aliases\u003d_TRANSPORT_ALIASES),"},{"line_number":72,"context_line":"            \"zaqar\", binary, host)"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_2a57e9cb","line":69,"in_reply_to":"9a80dd14_bb6b48f0","updated":"2015-03-17 16:03:57.000000000","message":"GTK, thanks for the info. It\u0027d be nice to produce a local file and then upload it to rally. Do you know if this has been proposed already?","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"651c9f29565129ddf703a0899b5fa4d408f266b2","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    profiler_conf \u003d conf[_PROFILER_GROUP]"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    if profiler_conf.enabled:"},{"line_number":69,"context_line":"        _notifier \u003d notifier.create("},{"line_number":70,"context_line":"            \"Messaging\", messaging, {},"},{"line_number":71,"context_line":"            messaging.get_transport(conf, aliases\u003d_TRANSPORT_ALIASES),"},{"line_number":72,"context_line":"            \"zaqar\", binary, host)"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_bb6b48f0","line":69,"in_reply_to":"9a80dd14_e54c9aa0","updated":"2015-03-17 05:44:57.000000000","message":"The trace data are sent to osprofiler own supported backend but rally. From storage perspective currently ceilometer is the only storage option (but mongodb backend is working in process [0], btw); and from architecture opinion osprofiler is a lib but has CLI, which loads trace data from centralized storage (ceilometer backend atm) and organize it to show, it could work from a management node remotely. So at the moment local profiling didn\u0027t support yet by osprofiler.\n\n[0] https://review.openstack.org/#/c/135601/","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":7385,"name":"Thomas Herve","email":"therve@redhat.com","username":"therve"},"change_message_id":"a8b63d1557d41d5b86da95a818624396768f578c","unresolved":false,"context_lines":[{"line_number":19,"context_line":"import webob.request"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"from oslo_log import log"},{"line_number":22,"context_line":"import oslo_messaging"},{"line_number":23,"context_line":"from osprofiler import notifier"},{"line_number":24,"context_line":"from osprofiler import web"},{"line_number":25,"context_line":""}],"source_content_type":"text/x-python","patch_set":34,"id":"ba5da102_0da577b4","line":22,"updated":"2016-11-04 14:32:26.000000000","message":"I think we shouldn\u0027t hard depend on oslo.messaging. Especially considering it can work without it.","commit_id":"0c2dd0700a296a14ab857183137a1d6cb28d8285"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"b99d6b9eb4445096fd67d6e1746a2be6a5b42778","unresolved":false,"context_lines":[{"line_number":19,"context_line":"import webob.request"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"from oslo_log import log"},{"line_number":22,"context_line":"import oslo_messaging"},{"line_number":23,"context_line":"from osprofiler import notifier"},{"line_number":24,"context_line":"from osprofiler import web"},{"line_number":25,"context_line":""}],"source_content_type":"text/x-python","patch_set":34,"id":"ba5da102_baa49b08","line":22,"in_reply_to":"ba5da102_0da577b4","updated":"2016-11-07 02:02:40.000000000","message":"Right! I\u0027ll move it to L60","commit_id":"0c2dd0700a296a14ab857183137a1d6cb28d8285"},{"author":{"_account_id":7385,"name":"Thomas Herve","email":"therve@redhat.com","username":"therve"},"change_message_id":"a8b63d1557d41d5b86da95a818624396768f578c","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    \u0027zaqar.rpc.impl_qpid\u0027: \u0027qpid\u0027,"},{"line_number":38,"context_line":"    \u0027zaqar.rpc.impl_zmq\u0027: \u0027zmq\u0027,"},{"line_number":39,"context_line":"}"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"def setup(conf, binary, host):"},{"line_number":43,"context_line":"    if conf.profiler.enabled:"}],"source_content_type":"text/x-python","patch_set":34,"id":"ba5da102_6d951387","line":40,"updated":"2016-11-04 14:32:26.000000000","message":"We don\u0027t need those aliases for compatibility?","commit_id":"0c2dd0700a296a14ab857183137a1d6cb28d8285"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"b99d6b9eb4445096fd67d6e1746a2be6a5b42778","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    \u0027zaqar.rpc.impl_qpid\u0027: \u0027qpid\u0027,"},{"line_number":38,"context_line":"    \u0027zaqar.rpc.impl_zmq\u0027: \u0027zmq\u0027,"},{"line_number":39,"context_line":"}"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"def setup(conf, binary, host):"},{"line_number":43,"context_line":"    if conf.profiler.enabled:"}],"source_content_type":"text/x-python","patch_set":34,"id":"ba5da102_5ab61f3e","line":40,"in_reply_to":"ba5da102_6d951387","updated":"2016-11-07 02:02:40.000000000","message":"I\u0027m not sure here but try to remove it.","commit_id":"0c2dd0700a296a14ab857183137a1d6cb28d8285"},{"author":{"_account_id":7385,"name":"Thomas Herve","email":"therve@redhat.com","username":"therve"},"change_message_id":"a8b63d1557d41d5b86da95a818624396768f578c","unresolved":false,"context_lines":[{"line_number":125,"context_line":"    @webob.dec.wsgify(RequestClass\u003dRequest)"},{"line_number":126,"context_line":"    def __call__(self, request):"},{"line_number":127,"context_line":"        return super(ProfileMiddleware, self).__call__(request)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"def install_wsgi_tracer(app, conf):"},{"line_number":131,"context_line":"    enabled \u003d conf.profiler.enabled and conf.profiler.trace_wsgi_transport"}],"source_content_type":"text/x-python","patch_set":34,"id":"ba5da102_cd161ff1","line":128,"updated":"2016-11-04 14:32:26.000000000","message":"I feel that it\u0027d be better and easier to not use the osprofiler middleware, and write our now, instead of having to carry all that compatibility crap for webob.","commit_id":"0c2dd0700a296a14ab857183137a1d6cb28d8285"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"b99d6b9eb4445096fd67d6e1746a2be6a5b42778","unresolved":false,"context_lines":[{"line_number":125,"context_line":"    @webob.dec.wsgify(RequestClass\u003dRequest)"},{"line_number":126,"context_line":"    def __call__(self, request):"},{"line_number":127,"context_line":"        return super(ProfileMiddleware, self).__call__(request)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"def install_wsgi_tracer(app, conf):"},{"line_number":131,"context_line":"    enabled \u003d conf.profiler.enabled and conf.profiler.trace_wsgi_transport"}],"source_content_type":"text/x-python","patch_set":34,"id":"ba5da102_9a86f763","line":128,"in_reply_to":"ba5da102_cd161ff1","updated":"2016-11-07 02:02:40.000000000","message":"OK, fix this in the next PS.","commit_id":"0c2dd0700a296a14ab857183137a1d6cb28d8285"}],"zaqar/storage/mongodb/driver.py":[{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"de69b875cd415614f97f21df88786feb2124c571","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":22,"id":"7af24918_5ed65c28","line":296,"updated":"2016-03-04 02:29:22.000000000","message":"Do we need to do similar thing with subscription?","commit_id":"ab1b903f155f8c4ab8a2493752abc5aa7c41b4ae"}],"zaqar/storage/pooling.py":[{"author":{"_account_id":7385,"name":"Thomas Herve","email":"therve@redhat.com","username":"therve"},"change_message_id":"a8b63d1557d41d5b86da95a818624396768f578c","unresolved":false,"context_lines":[{"line_number":78,"context_line":"        catalog \u003d Catalog(conf, cache, control)"},{"line_number":79,"context_line":"        if self.conf.profiler.enabled:"},{"line_number":80,"context_line":"            catalog \u003d profiler.trace_cls(\"pooling_catalogue_\""},{"line_number":81,"context_line":"                                         \"controller\")(catalog)"},{"line_number":82,"context_line":"        self._pool_catalog \u003d catalog"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"    @property"}],"source_content_type":"text/x-python","patch_set":34,"id":"ba5da102_4d876fd7","line":81,"updated":"2016-11-04 14:32:26.000000000","message":"trace_cls is meant to be used as a decorator, so I\u0027m a bit surprised to see it used like this.","commit_id":"0c2dd0700a296a14ab857183137a1d6cb28d8285"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"b99d6b9eb4445096fd67d6e1746a2be6a5b42778","unresolved":false,"context_lines":[{"line_number":78,"context_line":"        catalog \u003d Catalog(conf, cache, control)"},{"line_number":79,"context_line":"        if self.conf.profiler.enabled:"},{"line_number":80,"context_line":"            catalog \u003d profiler.trace_cls(\"pooling_catalogue_\""},{"line_number":81,"context_line":"                                         \"controller\")(catalog)"},{"line_number":82,"context_line":"        self._pool_catalog \u003d catalog"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"    @property"}],"source_content_type":"text/x-python","patch_set":34,"id":"ba5da102_da5b0f2d","line":81,"in_reply_to":"ba5da102_4d876fd7","updated":"2016-11-07 02:02:40.000000000","message":"If we use trace_cls as a decorator, it\u0027s hard to enable or disable it by config option.(Or do you have any idea here?) \n\nThis ways works as well. And as I know, Cinder uses it in this way. https://github.com/openstack/cinder/blob/master/cinder/volume/manager.py#L230","commit_id":"0c2dd0700a296a14ab857183137a1d6cb28d8285"}],"zaqar/storage/sqlalchemy/driver.py":[{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"de69b875cd415614f97f21df88786feb2124c571","unresolved":false,"context_lines":[{"line_number":116,"context_line":"            return controller"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    @property"},{"line_number":119,"context_line":"    def subscriptions_controller(self):"},{"line_number":120,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":22,"id":"7af24918_feebe8d9","line":119,"updated":"2016-03-04 02:29:22.000000000","message":"Do we need to change subscription controller?","commit_id":"ab1b903f155f8c4ab8a2493752abc5aa7c41b4ae"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"5baf9c76f226d0622a9a616ae03a891e11dbcf80","unresolved":false,"context_lines":[{"line_number":116,"context_line":"            return controller"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"    @property"},{"line_number":119,"context_line":"    def subscriptions_controller(self):"},{"line_number":120,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":22,"id":"ba0121b8_cb0dbce9","line":119,"in_reply_to":"7af24918_feebe8d9","updated":"2016-03-31 08:20:15.000000000","message":"THB, this function is useless. We could remove it.\nsubscriptions_controller is uesd for storge driver, not controller driver.","commit_id":"ab1b903f155f8c4ab8a2493752abc5aa7c41b4ae"}],"zaqar/transport/wsgi/driver.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"3849c409e791d191aacda58b03e32cc58b3c7126","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        \"\"\"Initialize WSGI middlewarez.\"\"\""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        # NOTE(zhiyan): Install Profiler"},{"line_number":109,"context_line":"        if self._conf.profiler.trace_wsgi:"},{"line_number":110,"context_line":"            self.app \u003d profile.install(self.app, self._conf)"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"        # NOTE(flaper87): Install Auth"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_c82deb90","line":109,"updated":"2015-03-13 21:42:19.000000000","message":"Should this be in the constructor?","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"9d455b166d8a498fb4d831663160604728813089","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        \"\"\"Initialize WSGI middlewarez.\"\"\""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        # NOTE(zhiyan): Install Profiler"},{"line_number":109,"context_line":"        if self._conf.profiler.trace_wsgi:"},{"line_number":110,"context_line":"            self.app \u003d profile.install(self.app, self._conf)"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"        # NOTE(flaper87): Install Auth"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_8ac9b57b","line":109,"in_reply_to":"9a80dd14_36604fcf","updated":"2015-03-17 16:03:57.000000000","message":"But there\u0027s a difference, the profiler is not really a middleware, it\u0027s wrapping the actual wsgi app - and acting like such. What about moving it to `_init_routes` then?","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"13ff07c066e97cf964e1d7a6e8a090ba2e2f5d36","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        \"\"\"Initialize WSGI middlewarez.\"\"\""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        # NOTE(zhiyan): Install Profiler"},{"line_number":109,"context_line":"        if self._conf.profiler.trace_wsgi:"},{"line_number":110,"context_line":"            self.app \u003d profile.install(self.app, self._conf)"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"        # NOTE(flaper87): Install Auth"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_30281c85","line":109,"in_reply_to":"9a80dd14_8ac9b57b","updated":"2015-03-18 04:23:05.000000000","message":"Oh correct, osprofiler is not a really a middleware, however, I mean which profiler.install() installed here is really a wsgi middleware, ref [0] [1]. As an earliest entry point, the middleware is used to create first trace data - which may continue existing root trace data other project provided, or as the root one for follow trace data zaqar profiled, and then pass the control to the app. If I miss anything pls let me know.\n\n[0] https://review.openstack.org/#/c/141356/13/zaqar/profile.py Line#141,192\n[1] https://github.com/openstack/glance/blob/master/etc/glance-api-paste.ini#L3,74","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"},{"author":{"_account_id":6549,"name":"Zhi Yan Liu","email":"lzy.dev@gmail.com","username":"lzy-dev"},"change_message_id":"651c9f29565129ddf703a0899b5fa4d408f266b2","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        \"\"\"Initialize WSGI middlewarez.\"\"\""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        # NOTE(zhiyan): Install Profiler"},{"line_number":109,"context_line":"        if self._conf.profiler.trace_wsgi:"},{"line_number":110,"context_line":"            self.app \u003d profile.install(self.app, self._conf)"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"        # NOTE(flaper87): Install Auth"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_36604fcf","line":109,"in_reply_to":"9a80dd14_c82deb90","updated":"2015-03-17 05:44:57.000000000","message":"I think current way is more self-contain, just like your follow installing auth module step? This place is designed for all about wsgi middleware stuff, so IMHO installing wsgi profile at here is fit. (profile.install() only installs a middleware for wsgi profiling).","commit_id":"267b0ffb429832792df9d222fa71891de03d4aad"}]}
