summaryrefslogtreecommitdiff
path: root/nova/console
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/console
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/console')
-rw-r--r--nova/console/rpcapi.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/console/rpcapi.py b/nova/console/rpcapi.py
index e78260d628..3141a7bbfa 100644
--- a/nova/console/rpcapi.py
+++ b/nova/console/rpcapi.py
@@ -19,11 +19,13 @@ Client side of the console RPC API.
import oslo_messaging as messaging
import nova.conf
+from nova import profiler
from nova import rpc
CONF = nova.conf.CONF
+@profiler.trace_cls("rpc")
class ConsoleAPI(object):
'''Client side of the console rpc API.