Closed jhawthorn closed 2 months ago
@jhawthorn thanks for this awesome library. I search I little bit and I cannot find an easy way to set up vernier with rails.
I saw the example with the minimal app, and it's working great, but how I can achieve that with a conventional rails app?
@PedroAugustoRamalhoDuarte I know it's not shortest answer but I recommend looking at https://youtu.be/9nvX3OHykGQ
One cool feature of Vernier (and the firefox profiler we use as a viewer) is that it supports tracing via "markers", which record events which happened during the profile.
When Aaron and I showcased Vernier, we cheated (slightly) and added some small hooks to trace Rails and Sidekiq. I do something pretty similar in
examples/rails.rb
.That's simple enough, it subscribes to every
ActiveSupport::Notifications
topic and forwards them, but it doesn't provide as much information as it could and it doesn't happen by default.Let's do this better and automatically detect and instrumenting popular libraries!