diff --git a/config/initializers/unicorn.rb b/config/initializers/unicorn.rb new file mode 100644 index 000000000..3f711a74a --- /dev/null +++ b/config/initializers/unicorn.rb @@ -0,0 +1,7 @@ +# Ensure the agent is started using Unicorn. +# This is needed when using Unicorn and preload_app is not set to true. +# See https://newrelic.com/docs/ruby/no-data-with-unicorn +if defined? Unicorn + ::NewRelic::Agent.manual_start() + ::NewRelic::Agent.after_fork(:force_reconnect => true) +end \ No newline at end of file