lib/instana/tracing/span.rb in instana-1.1.0 vs lib/instana/tracing/span.rb in instana-1.2.0

- old
+ new

@@ -1,10 +1,10 @@ module Instana class Span - REGISTERED_SPANS = [ :rack, :'net-http', :excon, :memcache ].freeze + REGISTERED_SPANS = [ :actioncontroller, :activerecord, :excon, :memcache, :'net-http', :rack ].freeze ENTRY_SPANS = [ :rack ].freeze - EXIT_SPANS = [ :'net-http', :excon ].freeze + EXIT_SPANS = [ :'net-http', :excon, :activerecord ].freeze HTTP_SPANS = ENTRY_SPANS + EXIT_SPANS attr_accessor :parent attr_accessor :baggage @@ -88,10 +88,10 @@ end if HTTP_SPANS.include?(@data[:n]) set_tags(:http => { :error => "#{e.class}: #{e.message}" }) else - set_tags(:log => { :message => e.message, :parameters => e.class }) + set_tags(:log => { :message => e.message, :parameters => e.class.to_s }) end e.instance_variable_set(:@instana_logged, true) end self end