Add OSprofiler support for Aodh client
Change-Id: I63fd903761f852aad03a6f24cebaab0ae7c52a55 Depends-On: I44bf27413af2133451cbd84d908631ce6a2fe1f7
This commit is contained in:
parent
dd556f5ea1
commit
fb22e98262
@ -12,6 +12,7 @@
|
||||
|
||||
from keystoneauth1 import adapter
|
||||
from oslo_utils import importutils
|
||||
from osprofiler import web
|
||||
|
||||
from aodhclient import exceptions
|
||||
|
||||
@ -29,6 +30,7 @@ class SessionClient(adapter.Adapter):
|
||||
# NOTE(sileht): The standard call raises errors from
|
||||
# keystoneauth, where we need to raise the aodhclient 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,
|
||||
|
@ -8,6 +8,7 @@ osc-lib>=1.0.1 # Apache-2.0
|
||||
oslo.i18n>=1.5.0 # Apache-2.0
|
||||
oslo.serialization>=1.4.0 # Apache-2.0
|
||||
oslo.utils>=2.0.0 # Apache-2.0
|
||||
osprofiler>=1.4.0 # Apache-2.0
|
||||
keystoneauth1>=1.0.0
|
||||
six
|
||||
pyparsing
|
Loading…
x
Reference in New Issue
Block a user