diff options
| author | Brice Figureau <brice-puppet@daysofwonder.com> | 2010-12-18 15:25:02 +0100 |
|---|---|---|
| committer | Brice Figureau <brice-puppet@daysofwonder.com> | 2010-12-18 15:25:02 +0100 |
| commit | e27d208db86ae0825afbc6fb34d39e7c047a1bf4 (patch) | |
| tree | 9d06016ba13e5e5702928cabfd461924b647a457 /lib/puppet/network/http | |
| parent | aed4b5fd674107d6c1e3a2e2e5c2f8c42f7a5c35 (diff) | |
| download | puppet-e27d208db86ae0825afbc6fb34d39e7c047a1bf4.tar.gz puppet-e27d208db86ae0825afbc6fb34d39e7c047a1bf4.tar.xz puppet-e27d208db86ae0825afbc6fb34d39e7c047a1bf4.zip | |
Some high-level process name probes
Here is an attempt to cover with process name probes some of the longest
parts of a puppet agent or master.
Currently:
* node compilation
* individual resource evaluation
* some configurer parts
* individual network requests
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'lib/puppet/network/http')
| -rw-r--r-- | lib/puppet/network/http/handler.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/network/http/handler.rb b/lib/puppet/network/http/handler.rb index 82238aa0a..855a9b78d 100644 --- a/lib/puppet/network/http/handler.rb +++ b/lib/puppet/network/http/handler.rb @@ -5,10 +5,12 @@ require 'puppet/network/http/api/v1' require 'puppet/network/rest_authorization' require 'puppet/network/rights' require 'resolv' +require 'puppet/util/instrumentation' module Puppet::Network::HTTP::Handler include Puppet::Network::HTTP::API::V1 include Puppet::Network::RestAuthorization + include Puppet::Util::Instrumentation attr_reader :server, :handler @@ -65,7 +67,9 @@ module Puppet::Network::HTTP::Handler check_authorization(indirection, method, key, params) - send("do_#{method}", indirection, key, params, request, response) + instrument("processing #{indirection} #{key}") do + send("do_#{method}", indirection, key, params, request, response) + end rescue SystemExit,NoMemoryError raise rescue Exception => e |
