Return X-OpenStack-Request-Id header in response
It is very useful for debugging purpose, because it allows operators to identify logs which is related to a specific client request. Change-Id: I5ae5caf276a40126bd49d70e0548b2876e7d8398 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
1 parent
d932f98308
commit
354ec271db
1 file changed
+4
-1
@@ -8,7 +8,7 @@ use = call:trove.common.wsgi:versioned_urlmap
|
||||
paste.app_factory = trove.versions:app_factory
|
||||
|
||||
[pipeline:troveapi]
|
||||
pipeline = cors http_proxy_to_wsgi faultwrapper osprofiler authtoken authorization contextwrapper ratelimit extensions troveapp
|
||||
pipeline = cors request_id http_proxy_to_wsgi faultwrapper osprofiler authtoken authorization contextwrapper ratelimit extensions troveapp
|
||||
#pipeline = debug extensions troveapp
|
||||
|
||||
[filter:extensions]
|
||||
@@ -24,6 +24,9 @@ paste.filter_factory = trove.common.auth:AuthorizationMiddleware.factory
|
||||
paste.filter_factory = oslo_middleware.cors:filter_factory
|
||||
oslo_config_project = trove
|
||||
|
||||
[filter:request_id]
|
||||
paste.filter_factory = oslo_middleware.request_id:RequestId.factory
|
||||
|
||||
[filter:contextwrapper]
|
||||
paste.filter_factory = trove.common.wsgi:ContextMiddleware.factory
|
||||
|
||||
|
||||
Reference in new issue
Block a user