Skip to content

Commit 2ec90f8

Browse files
authored
Add section for the Falcon framework
and how to instrument via WSGI
1 parent 16add91 commit 2ec90f8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

INSTALLATION.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,24 @@ In this example, we use uwsgi as the webserver and booted with:
9595

9696
Where `~/.local/share/virtualenvs/cherrypyapp-C1BUba0z` is the path to my local virtualenv from pipenv
9797

98+
## Falcon WSGI
99+
100+
The Falcon framework can also be instrumented via the WSGI wrapper as such:
101+
102+
```python
103+
import falcon
104+
import instana
105+
from instana.wsgi import iWSGIMiddleware
106+
107+
app = falcon.API()
108+
109+
# ...
110+
111+
app = iWSGIMiddleware(app)
112+
```
113+
114+
Then booting your stack with `gunicorn myfalcon:app` as an example
115+
98116
# uWSGI Webserver
99117

100118
tldr; Make sure `enable-threads` and `lazy-apps` is enabled for uwsgi.

0 commit comments

Comments
 (0)