Use egg form of osprofiler in paste pipeline

Use the egg form of the osprofiler filter middleware in the paste
pipeline. This gives osprofiler greater control over exactly where this
middleware is pointing.

It also moves the filter section up to where all the other filters are.

Change-Id: I330956c49167606ce8a8137139ee92bd603adceb
This commit is contained in:
Jamie Lennox 2016-08-25 18:39:52 +10:00
parent 43e75294d0
commit 3e29913bb9

View File

@ -42,6 +42,9 @@ use = egg:keystone#url_normalize
[filter:sizelimit]
use = egg:oslo.middleware#sizelimit
[filter:osprofiler]
use = egg:osprofiler#osprofiler
[app:public_service]
use = egg:keystone#public_service
@ -89,6 +92,3 @@ use = egg:Paste#urlmap
/v2.0 = admin_api
/v3 = api_v3
/ = admin_version_api
[filter:osprofiler]
paste.filter_factory = osprofiler.web:WsgiMiddleware.factory