Best practice for Flask + Elastic Beanstalk

What is the Best practice for Flask + Elastic Beanstalk?

It’s not clear from the documentation. Please advise.

The process consists of installing and integrating the Python agent with your application.

Installation procedures can be found here:

Flask is one of the web frameworks that we automatically instrument (see

However, you’ll need to make sure to integrate the agent with your WSGI server. Elastic beanstalk uses Apache/mod_wsgi by default, which must be integrated manually as described here:

Is that the information you were looking for?

Wrapping application = newrelic.agent.WSGIApplicationWrapper(application)
prevented me from using the @application.routes .

Do you have any example code?

Can I get an answer?

At this point, we should create a support ticket to further investigate this issue. We will need information like debug logs and your file that you may not want to post in the forum.

You should receive an email message from us shortly with a link to the ticket. If you don’t receive an email, please check your spam folder. If you still don’t see the email after checking your spam folder, please contact us.

I moved a post to a new topic: Installing Python Agent

A post was split to a new topic: Feature Idea: Open Source Python Agent