class OpenTracing::Instrumentation::Mongo::SampleSafetyArgumentChecker
SampleSafetyArgumentChecker
check argument to safety Draft implementation
Constants
- DEFAULT_SAFE_ARGUMENTS
Attributes
safe_arguments[R]
Public Class Methods
new(safe_arguments: DEFAULT_SAFE_ARGUMENTS)
click to toggle source
# File lib/opentracing/instrumentation/mongo/sample_safety_argument_checker.rb, line 16 def initialize(safe_arguments: DEFAULT_SAFE_ARGUMENTS) @safe_arguments = safe_arguments end
Public Instance Methods
argument_safe?(_command_name, argument_path, _argument_value)
click to toggle source
check
@return (TrueClass, FalseClass) `true`, if argument safe and not not should be cleaned. Otherwise return `falseā.
# File lib/opentracing/instrumentation/mongo/sample_safety_argument_checker.rb, line 24 def argument_safe?(_command_name, argument_path, _argument_value) safe_arguments.include?(argument_path) end