Module: Rollbar::Scrubbers

Extended by:
Scrubbers
Included in:
Scrubbers
Defined in:
lib/rollbar/scrubbers.rb,
lib/rollbar/scrubbers/url.rb,
lib/rollbar/scrubbers/params.rb

Defined Under Namespace

Classes: Params, URL

Instance Method Summary collapse

Instance Method Details

#random_filtered_valueObject



13
14
15
# File 'lib/rollbar/scrubbers.rb', line 13

def random_filtered_value
  '*' * (rand(5) + 3)
end

#scrub_value(value) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/rollbar/scrubbers.rb', line 5

def scrub_value(value)
  if Rollbar.configuration.randomize_scrub_length
    random_filtered_value
  else
    '*' * (value.length rescue 8)
  end
end