lib/instana/util.rb in instana-1.4.9 vs lib/instana/util.rb in instana-1.4.11
- old
+ new
@@ -88,10 +88,11 @@
def take_snapshot
data = {}
data[:sensorVersion] = ::Instana::VERSION
data[:ruby_version] = RUBY_VERSION
+ data[:rpl] = RUBY_PATCHLEVEL if defined?(RUBY_PATCHLEVEL)
# Framework Detection
if defined?(::RailsLts::VERSION)
data[:framework] = "Rails on Rails LTS-#{::RailsLts::VERSION}"
@@ -117,11 +118,11 @@
end
end
data
rescue => e
- ::Instana.logger.error "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}"
+ ::Instana.logger.debug "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}"
::Instana.logger.debug e.backtrace.join("\r\n")
return data
end
# Used in class initialization and after a fork, this method
@@ -191,11 +192,11 @@
Instana.logger.debug "id_to_header received a #{id.class}: returning empty string"
return String.new
end
[id.to_i].pack('q>').unpack('H*')[0].gsub(/^0+/, '')
rescue => e
- Instana.logger.error "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}"
+ Instana.logger.info "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}"
Instana.logger.debug e.backtrace.join("\r\n")
end
# Convert a received header value into a valid ID
#
@@ -214,10 +215,10 @@
missing = 16 - header_id.length
header_id = ("0" * missing) + header_id
end
[header_id].pack("H*").unpack("q>")[0]
rescue => e
- Instana.logger.error "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}"
+ Instana.logger.info "#{__method__}:#{File.basename(__FILE__)}:#{__LINE__}: #{e.message}"
Instana.logger.debug e.backtrace.join("\r\n")
end
end
end
end