diff --git a/pankoclient/client.py b/pankoclient/client.py index 4e14faa..166988e 100644 --- a/pankoclient/client.py +++ b/pankoclient/client.py @@ -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, diff --git a/requirements.txt b/requirements.txt index 600e72d..0ba2e2b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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