Features
-
Experimental support for multi-threaded profiling using Vernier (#2372)
You can have much better profiles if you're using multi-threaded servers like Puma now by leveraging Vernier.
To use it, first addvernier
to yourGemfile
and make sure it is loaded beforesentry-ruby
.# Gemfile gem 'vernier' gem 'sentry-ruby'
Then, set a
profiles_sample_rate
and the newprofiler_class
configuration in your sentry initializer to use the new profiler.# config/initializers/sentry.rb Sentry.init do |config| # ... config.profiles_sample_rate = 1.0 config.profiler_class = Sentry::Vernier::Profiler end