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.5.3-java lib/appsignal/integrations/excon.rb
appsignal-3.5.3 lib/appsignal/integrations/excon.rb
appsignal-3.5.2-java lib/appsignal/integrations/excon.rb
appsignal-3.5.2 lib/appsignal/integrations/excon.rb
appsignal-3.5.1-java lib/appsignal/integrations/excon.rb
appsignal-3.5.1 lib/appsignal/integrations/excon.rb
appsignal-3.5.0-java lib/appsignal/integrations/excon.rb
appsignal-3.5.0 lib/appsignal/integrations/excon.rb
appsignal-3.4.16-java lib/appsignal/integrations/excon.rb
appsignal-3.4.16 lib/appsignal/integrations/excon.rb
appsignal-3.4.15-java lib/appsignal/integrations/excon.rb
appsignal-3.4.15 lib/appsignal/integrations/excon.rb
appsignal-3.4.14-java lib/appsignal/integrations/excon.rb
appsignal-3.4.14 lib/appsignal/integrations/excon.rb
appsignal-3.4.13-java lib/appsignal/integrations/excon.rb
appsignal-3.4.13 lib/appsignal/integrations/excon.rb
appsignal-3.4.12-java lib/appsignal/integrations/excon.rb
appsignal-3.4.12 lib/appsignal/integrations/excon.rb
appsignal-3.4.11-java lib/appsignal/integrations/excon.rb
appsignal-3.4.11 lib/appsignal/integrations/excon.rb