Sha256: 7b1844b4ed7e1d370d6cd4d28099dbe3892e545fa4ae10a867046b347c7518d8
Contents?: true
Size: 633 Bytes
Versions: 70
Compression:
Stored size: 633 Bytes
Contents
# frozen_string_literal: true module Appsignal module Integrations # @api private module UnicornIntegration # Make sure that appsignal is started and the last transaction # in a worker gets flushed. # # We'd love to be able to hook this into Unicorn in a less # intrusive way, but this is the best we can do given the # options we have. module Server def worker_loop(worker) Appsignal.forked super end end module Worker def close Appsignal.stop("unicorn") super end end end end end
Version data entries
70 entries across 70 versions & 1 rubygems