Sha256: fc2d7fe1feddaf751864184dd8afb7cd366038c7a30de3c5b4637eefe37630db
Contents?: true
Size: 465 Bytes
Versions: 2
Compression:
Stored size: 465 Bytes
Contents
# # Install a signal handler dumping Rails stack by raising an exception # # Trigger it with: kill -QUIT <pid> # trap "QUIT" do STDERR.puts "=============== XRay - Raising exception in Rails thread ===============" if Dispatcher.thread_in_dispatch Dispatcher.thread_in_dispatch.raise "XRay - Forced exception to Rails stack trace" else STDERR.puts "No Rails thread in dispatch" end STDERR.puts "=============== XRay - Done ===============" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
XRay-1.0 | lib/xray/rails_stack_signal_handler.rb |
XRay-1.0.1 | lib/xray/rails_stack_signal_handler.rb |