class Mongo::Collection
Public Instance Methods
oboe_collect(m, args)
click to toggle source
# File lib/oboe/inst/mongo.rb, line 120 def oboe_collect(m, args) begin report_kvs = {} report_kvs[:Flavor] = Oboe::Inst::Mongo::FLAVOR report_kvs[:Database] = @db.name report_kvs[:RemoteHost] = @db.connection.host report_kvs[:RemotePort] = @db.connection.port report_kvs[:Collection] = @name report_kvs[:Backtrace] = Oboe::API.backtrace if Oboe::Config[:mongo][:collect_backtraces] report_kvs[:QueryOp] = m report_kvs[:Query] = args[0].to_json if args && !args.empty? && args[0].class == Hash rescue StandardError => e Oboe.logger.debug "[oboe/debug] Exception in oboe_collect KV collection: #{e.inspect}" end report_kvs end