summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network/http
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2010-12-18 15:25:02 +0100
committerBrice Figureau <brice-puppet@daysofwonder.com>2010-12-18 15:25:02 +0100
commite27d208db86ae0825afbc6fb34d39e7c047a1bf4 (patch)
tree9d06016ba13e5e5702928cabfd461924b647a457 /lib/puppet/network/http
parentaed4b5fd674107d6c1e3a2e2e5c2f8c42f7a5c35 (diff)
downloadpuppet-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.rb6
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