Module: Rollbar::Scrubbers

Defined in:
lib/rollbar/scrubbers.rb,
lib/rollbar/scrubbers/url.rb,
lib/rollbar/scrubbers/params.rb

Defined Under Namespace

Classes: Params, URL

Class Method Summary collapse

Class Method Details

.random_filtered_valueObject



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

def random_filtered_value
  '*' * rand(3..7)
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
    '*' * 6
  end
end