You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,10 @@ For Django version 1.9.x, instead set:
34
34
To enable the Flask instrumentation, set the following environment variable in your _application boot environment_ and then restart your application:
35
35
36
36
`export AUTOWRAPT_BOOTSTRAP=flask`
37
+
38
+
## WSGI Compliant Stacks
39
+
40
+
The Instana sensor bundles with it WSGI middleware. The usage of this middleware is automated for various frameworks but for those that arent' supported yet, see the [WSGI documentation](WSGI.md) for details on how to manually add it to your stack.
37
41
38
42
## Runtime Monitoring Only
39
43
@@ -53,6 +57,26 @@ This Python instrumentation spawns a lightweight background thread to periodical
53
57
54
58
If you use uWSGI in forking workers mode, you must specify `--lazy-apps` (or `lazy-apps = true` in ini style) to load the application in the worker instead of the master process.
The Instana sensor includes WSGI middleware that can be added to any WSGI compliant stack. This is automated for various stacks but can also be done manually for those we haven't added support for yet.
2
+
3
+
The general usage is:
4
+
5
+
```python
6
+
import instana
7
+
from instana.wsgi import iWSGIMiddleware
8
+
9
+
# Wrap the wsgi app in Instana middleware (iWSGIMiddleware)
10
+
wsgiapp = iWSGIMiddleware(MyWSGIApplication())
11
+
```
12
+
13
+
We are working to automate this for all major frameworks but in the meantime, here are some specific quick starts for those we don't have automatic support for yet.
0 commit comments