Class: Appsignal::Middleware::MopedEventSanitizer
- Inherits:
-
Object
- Object
- Appsignal::Middleware::MopedEventSanitizer
- Defined in:
- lib/appsignal/middleware/moped_event_sanitizer.rb
Constant Summary collapse
- WHITELISTED_KEYS =
%w{fields flags}
Instance Method Summary collapse
Instance Method Details
#call(event) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/appsignal/middleware/moped_event_sanitizer.rb', line 6 def call(event) if target?(event) event.payload[:ops].each do |operation| operation.each_value do |parameters| selected(parameters).each_value do |value| scrub!(value) end end end end yield end |