Method: ElasticAPM::Transport::Filters::HashSanitizer#strip_from!

Defined in:
lib/elastic_apm/transport/filters/hash_sanitizer.rb

#strip_from!(obj) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/elastic_apm/transport/filters/hash_sanitizer.rb', line 39

def strip_from!(obj)
  return unless obj.is_a?(Hash)

  obj.each_pair do |k, v|
    case v
    when Hash
      strip_from!(v)
    else
      next unless filter_key?(k)
      obj[k] = FILTERED
    end
  end
end