Class: OpenTracing::Instrumentation::Mongo::DirectSanitazer

Inherits:
Object
  • Object
show all
Defined in:
lib/opentracing/instrumentation/mongo/direct_sanitazer.rb

Overview

DirectSanitazer requests.

Direct Known Subclasses

QuerySanitazer

Instance Method Summary collapse

Instance Method Details

#sanitaze(command, command_name) ⇒ Object



8
9
10
11
12
# File 'lib/opentracing/instrumentation/mongo/direct_sanitazer.rb', line 8

def sanitaze(command, command_name)
  command = command.dup
  command.delete(command_name)
  command
end