Method: Moped::Query#distinct_with_oboe
- Defined in:
- lib/oboe/inst/moped.rb
#distinct_with_oboe(key) ⇒ Object
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 |
# File 'lib/oboe/inst/moped.rb', line 240 def distinct_with_oboe(key) return distinct_without_oboe(key) unless Oboe.tracing? begin report_kvs = extract_trace_details(:distinct) report_kvs[:Query] = selector.empty? ? 'all' : selector.to_json report_kvs[:Key] = key.to_s rescue StandardError => e Oboe.logger.debug "[oboe/debug] Moped KV collection error: #{e.inspect}" end Oboe::API.trace('mongo', report_kvs) do distinct_without_oboe(key) end end |