Heroku allows the option of directly deploying one\'s Java .war file using heroku deploy:war
(the Procfile is automatically manage
I received this response from Heroku Support team:
WAR deploy doesn't specifically handle this case. However, it should work. You can include the New Relic JAR in your WAR and add the javaagent flag in your JAVA_OPTS config.
Following up on this question from New Relic support and adding clarifying statements to this old question. Unfortunately as far as I'm aware, it isn't possible to use the New Relic .jar file in an embedded war file without exploding the war.
On Heroku, using deploy:war simply wraps your war in jetty runner. An alternative would be to deploy an app that uses jetty runner by deploying source code instead of a binary. Instructions are here:
If you use the approach above, you should be able to add New Relic to your project.