Dynamic Languages (Node.JS, Python, PHP, C/C++, Webserver Agent)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to install a python agent when using a gunicorn base application?

Explorer

How to install a python agent when using a gunicorn base application?

Hi,

 

Currently, the getting started wizard for installing the python agent gives a few options for starting the pyagent and creating the connecting. My application is using gunicorn to deploy a flask app but I do not have a run command. The instruction to prepend pyagent run to the run command, therefore, does not apply.

 

 

if __name__ == '__main__':
    options = {
        'bind': '%s:%s' % ('0.0.0.0', '5000'),
        'workers': number_of_workers()
    }
    StandaloneApplication(app.wsgi_app, options).run()

 

 This is the main for my app. StandaloneApplication is a class that inherits from gunicorns BaseApplication. I want to install the python agent and create the connecting and finish with the getting started wizard. How can I do this without the run command?

 

Apologies if anything is unclear I would be happy to clarify. Thanks for any help!

How to install a python agent when using a gunicorn base application?