Sha256: 571336772b6d8f0e950fc09295617068d3dda85215470badfdb2bf3e945ad827

Contents?: true

Size: 521 Bytes

Versions: 172

Compression:

Stored size: 521 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  module Integrations
    module ExconIntegration
      def self.instrument(name, data, &block)
        namespace, *event = name.split(".")
        rails_name = [event, namespace].flatten.join(".")

        title =
          if rails_name == "response.excon"
            data[:host]
          else
            "#{data[:method].to_s.upcase} #{data[:scheme]}://#{data[:host]}"
          end
        Appsignal.instrument(rails_name, title, &block)
      end
    end
  end
end

Version data entries

172 entries across 172 versions & 1 rubygems

Version Path
appsignal-3.10.0-java lib/appsignal/integrations/excon.rb
appsignal-3.10.0 lib/appsignal/integrations/excon.rb
appsignal-3.9.3-java lib/appsignal/integrations/excon.rb
appsignal-3.9.3 lib/appsignal/integrations/excon.rb
appsignal-3.9.2-java lib/appsignal/integrations/excon.rb
appsignal-3.9.2 lib/appsignal/integrations/excon.rb
appsignal-3.9.1-java lib/appsignal/integrations/excon.rb
appsignal-3.9.1 lib/appsignal/integrations/excon.rb
appsignal-3.9.0-java lib/appsignal/integrations/excon.rb
appsignal-3.9.0 lib/appsignal/integrations/excon.rb
appsignal-3.8.1-java lib/appsignal/integrations/excon.rb
appsignal-3.8.1 lib/appsignal/integrations/excon.rb
appsignal-3.8.0-java lib/appsignal/integrations/excon.rb
appsignal-3.8.0 lib/appsignal/integrations/excon.rb
appsignal-3.7.6-java lib/appsignal/integrations/excon.rb
appsignal-3.7.6 lib/appsignal/integrations/excon.rb
appsignal-3.7.2-java lib/appsignal/integrations/excon.rb
appsignal-3.7.2 lib/appsignal/integrations/excon.rb
appsignal-3.7.1-java lib/appsignal/integrations/excon.rb
appsignal-3.7.1 lib/appsignal/integrations/excon.rb