Add Osprofiler support for Panko client
Change-Id: I40e6be2d8d5219bdf81bd9359d46d4f9464e1255 Depends-On: Ic934acbe1340a3e00361f2709f34725e0e4aa3ba
This commit is contained in:
parent
2fb95cb8bd
commit
4723ef86f1
@ -13,6 +13,7 @@
|
||||
|
||||
from keystoneauth1 import adapter
|
||||
from oslo_utils import importutils
|
||||
from osprofiler import web
|
||||
|
||||
from pankoclient import exceptions
|
||||
|
||||
@ -30,6 +31,7 @@ class SessionClient(adapter.Adapter):
|
||||
# NOTE(sileht): The standard call raises errors from
|
||||
# keystoneauth, where we need to raise the pankoclient errors.
|
||||
raise_exc = kwargs.pop('raise_exc', True)
|
||||
kwargs['headers'].update(web.get_trace_id_headers())
|
||||
resp = super(SessionClient, self).request(url,
|
||||
method,
|
||||
raise_exc=False,
|
||||
|
@ -7,6 +7,7 @@ osc-lib>=1.8.0 # Apache-2.0
|
||||
oslo.i18n>=2.1.0 # Apache-2.0
|
||||
oslo.serialization>=1.10.0 # Apache-2.0
|
||||
oslo.utils>=3.18.0 # Apache-2.0
|
||||
osprofiler>=1.4.0 # Apache-2.0
|
||||
pbr>=1.8 # Apache-2.0
|
||||
requests>=2.14.2 # Apache-2.0
|
||||
six>=1.9.0 # MIT
|
||||
|
Loading…
Reference in New Issue
Block a user