This caused problems because it effectively started the APM agent twice, causing the configuration to be ignored and duplicate events to be sent.
https://www.elastic.co/guide/en/apm/agent/ruby/4.x/introduction.html