From ecc8de8d6cccb06d7f4c8ecc144d37612ae1e9cc Mon Sep 17 00:00:00 2001 From: Dina Belova Date: Tue, 8 Dec 2015 14:32:10 +0300 Subject: 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 Co-Authored-By: Munoz, Obed N Co-Authored-By: Roman Podoliaka Co-Authored-By: Tovin Seven Implements: blueprint osprofiler-support-in-nova Change-Id: I82d2badc8c1fcec27c3fce7c3c20e0f3b76414f1 --- nova/console/rpcapi.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nova/console') 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. -- cgit v1.2.1