Sha256: 1a79a85471f29de34e174253655532c650c95a265920aa142ede355bf87dcd5a

Contents?: true

Size: 416 Bytes

Versions: 49

Compression:

Stored size: 416 Bytes

Contents

Net::HTTP.class_eval do
  alias request_without_appsignal request

  def request(request, body=nil, &block)
    ActiveSupport::Notifications.instrument(
      'request.net_http',
      :host => request['host'] || self.address,
      :scheme => use_ssl? ? 'https' : 'http',
      :path => request.path,
      :method => request.method
    ) do
      request_without_appsignal(request, body, &block)
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
appsignal-0.11.18 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.17 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.16 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.15 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.14 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.14.beta.1 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.13 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.13.beta.4 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.13.beta.3 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.13.beta.2 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.13.beta.1 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.13.beta.0 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.12 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.11 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.10 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.10.beta.2 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.10.beta.1 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.9 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.8.beta.4 lib/appsignal/instrumentations/net_http.rb
appsignal-0.11.8.beta.3 lib/appsignal/instrumentations/net_http.rb