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