Module: Appsignal::Integrations::ExconIntegration Private
- Defined in:
- lib/appsignal/integrations/excon.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
Class Method Details
.instrument(name, data, &block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/appsignal/integrations/excon.rb', line 7 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 |