460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
|
# File 'lib/sentry/configuration.rb', line 460
def validate
if profiler_class == Sentry::Profiler && profiles_sample_rate && !Sentry.dependency_installed?(:StackProf)
log_warn("Please add the 'stackprof' gem to your Gemfile to use the StackProf profiler with Sentry.")
end
if profiler_class == Sentry::Vernier::Profiler && profiles_sample_rate && !Sentry.dependency_installed?(:Vernier)
log_warn("Please add the 'vernier' gem to your Gemfile to use the Vernier profiler with Sentry.")
end
self.class.validations.each do |attribute, validation|
value = public_send(attribute)
next if (result = validation[:proc].call(value)) === true
raise ArgumentError, result[:error]
end
end
|