summaryrefslogtreecommitdiff
path: root/nova/scheduler/rpcapi.py
diff options
context:
space:
mode:
authorDina Belova <dbelova@mirantis.com>2015-12-08 14:32:10 +0300
committerTovin Seven <vinhnt@vn.fujitsu.com>2017-01-18 15:00:14 +0700
commitecc8de8d6cccb06d7f4c8ecc144d37612ae1e9cc (patch)
tree03345e2b6d7afd801b78aab134473698fdf8fa1d /nova/scheduler/rpcapi.py
parent045f08ab8a57b90b00e4777ca71a20b5603c296c (diff)
downloadnova-ecc8de8d6cccb06d7f4c8ecc144d37612ae1e9cc.tar.gz
Integrate OSProfiler and Nova
* Add osprofiler wsgi middleware. This middleware is used for 2 things: 1) It checks that person who want to trace is trusted and knows secret HMAC key. 2) It starts tracing in case of proper trace headers and adds the first wsgi trace point with info about the HTTP request * Add initialization of osprofiler on start of a service Currently that includes oslo.messaging notifier instance creation to send Ceilometer backend notifications. oslo-spec: https://review.openstack.org/#/c/103825/ python-novaclient change: https://review.openstack.org/#/c/254699/ based on: https://review.openstack.org/#/c/105096/ Co-Authored-By: Boris Pavlovic <boris@pavlovic.me> Co-Authored-By: Munoz, Obed N <obed.n.munoz@intel.com> Co-Authored-By: Roman Podoliaka <rpodolyaka@mirantis.com> Co-Authored-By: Tovin Seven <vinhnt@vn.fujitsu.com> Implements: blueprint osprofiler-support-in-nova Change-Id: I82d2badc8c1fcec27c3fce7c3c20e0f3b76414f1
Diffstat (limited to 'nova/scheduler/rpcapi.py')
-rw-r--r--nova/scheduler/rpcapi.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/scheduler/rpcapi.py b/nova/scheduler/rpcapi.py
index d636fd03a4..d776fe7699 100644
--- a/nova/scheduler/rpcapi.py
+++ b/nova/scheduler/rpcapi.py
@@ -20,11 +20,13 @@ import oslo_messaging as messaging
import nova.conf
from nova.objects import base as objects_base
+from nova import profiler
from nova import rpc
CONF = nova.conf.CONF
+@profiler.trace_cls("rpc")
class SchedulerAPI(object):
'''Client side of the scheduler rpc API.