File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,29 @@ app = iWSGIMiddleware(app)
113113
114114Then booting your stack with ` gunicorn myfalcon:app ` as an example
115115
116+ ## Tornado WSGI
117+
118+ You can have request visbility in Tornado by adding the Instana WSGI to your application:
119+
120+ ``` python
121+ import tornado.web
122+ import tornado.wsgi
123+ import wsgiref.simple_server
124+ from instana.wsgi import iWSGIMiddleware
125+
126+ class MainHandler (tornado .web .RequestHandler ):
127+ def get (self ):
128+ self .write(" Hello, world" )
129+
130+ if __name__ == " __main__" :
131+ application = tornado.web.Application([
132+ (r " /" , MainHandler),
133+ ])
134+ wsgi_app = iWSGIMiddleware(tornado.wsgi.WSGIAdapter(application))
135+ server = wsgiref.simple_server.make_server(' ' , 8888 , wsgi_app)
136+ server.serve_forever()
137+ ```
138+
116139# uWSGI Webserver
117140
118141tldr; Make sure ` enable-threads ` and ` lazy-apps ` is enabled for uwsgi.
You can’t perform that action at this time.
0 commit comments