Sha256: fb6b3aeb0b934862e05212e732e5a80837c85e80b04f50d20b837919df66d71b

Contents?: true

Size: 369 Bytes

Versions: 196

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  module Integrations
    module NetHttpIntegration
      def request(request, body = nil, &block)
        Appsignal.instrument(
          "request.net_http",
          "#{request.method} #{use_ssl? ? "https" : "http"}://#{request["host"] || address}"
        ) do
          super
        end
      end
    end
  end
end

Version data entries

196 entries across 196 versions & 1 rubygems

Version Path
appsignal-3.0.11-java lib/appsignal/integrations/net_http.rb
appsignal-3.0.11 lib/appsignal/integrations/net_http.rb
appsignal-3.0.10-java lib/appsignal/integrations/net_http.rb
appsignal-3.0.10 lib/appsignal/integrations/net_http.rb
appsignal-3.0.9-java lib/appsignal/integrations/net_http.rb
appsignal-3.0.9 lib/appsignal/integrations/net_http.rb
appsignal-3.0.8-java lib/appsignal/integrations/net_http.rb
appsignal-3.0.8 lib/appsignal/integrations/net_http.rb
appsignal-3.0.7-java lib/appsignal/integrations/net_http.rb
appsignal-3.0.7 lib/appsignal/integrations/net_http.rb
appsignal-3.0.6-java lib/appsignal/integrations/net_http.rb
appsignal-3.0.6 lib/appsignal/integrations/net_http.rb
appsignal-3.0.5-java lib/appsignal/integrations/net_http.rb
appsignal-3.0.5 lib/appsignal/integrations/net_http.rb
appsignal-3.0.4-java lib/appsignal/integrations/net_http.rb
appsignal-3.0.4 lib/appsignal/integrations/net_http.rb
appsignal-3.0.4.alpha.1-java lib/appsignal/integrations/net_http.rb
appsignal-3.0.4.alpha.1 lib/appsignal/integrations/net_http.rb
appsignal-3.0.3-java lib/appsignal/integrations/net_http.rb
appsignal-3.0.3 lib/appsignal/integrations/net_http.rb