* Add osprofiler wsgi middleware. This middleware is used for 2 things: * Add initialization of osprofiler at start of service Currently sending Ceilometer backend notifications will be implemented after ceilometer integrated. * Traces HTTP/RPC/DB API calls Demo:http://kevinzhao.org/container-create.html How to use it:http://kevinzhao.org/2017/03/14/zun-integrate-with-osprofile.html Change-Id: I28b3e7256235b3b8ad66ce60fd2e6bb51943a7f5 Implements: blueprint integrate-with-osprofiler Signed-off-by: Kevin Zhao <kevin.zhao@linaro.org>
20 lines
523 B
INI
20 lines
523 B
INI
[pipeline:main]
|
|
pipeline = cors request_id osprofiler authtoken api_v1
|
|
|
|
[app:api_v1]
|
|
paste.app_factory = zun.api.app:app_factory
|
|
|
|
[filter:authtoken]
|
|
acl_public_routes = /, /v1
|
|
paste.filter_factory = zun.api.middleware.auth_token:AuthTokenMiddleware.factory
|
|
|
|
[filter:osprofiler]
|
|
paste.filter_factory = zun.common.profiler:WsgiMiddleware.factory
|
|
|
|
[filter:request_id]
|
|
paste.filter_factory = oslo_middleware:RequestId.factory
|
|
|
|
[filter:cors]
|
|
paste.filter_factory = oslo_middleware.cors:filter_factory
|
|
oslo_config_project = zun
|