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
The instana package will automatically collect metrics and distributed traces from your Python processes. Just install and go.
18
+
None
19
19
20
-
`pip install instana` into the virtual-env or container ([hosted on pypi](https://pypi.python.org/pypi/instana))
20
+
_Instana automatically instruments your Python web servers automatically. No user steps are required. To configure which Python processes this applies to, see the [Configuration page](https://docs.instana.io/ecosystem/python/configuration/#general)._
21
21
22
-
The Instana package can then be activated _without any code changes required_ by setting the following environment variable for your Python application:
22
+
## Manual Installation
23
23
24
-
export AUTOWRAPT_BOOTSTRAP=instana
24
+
If you wish to manually instrument your applications you can install the package with the following into the virtualenv, pipenv or container ([hosted on pypi](https://pypi.python.org/pypi/instana)):
25
25
26
-
alternatively, if you prefer the manual method, simply import the `instana` package inside of your Python application:
26
+
pip install instana
27
27
28
-
import instana
28
+
or to alternatively update an existing installation:
29
29
30
-
See our detailed [Installation document](INSTALLATION.md) for additional information covering Django, Flask, End-user Monitoring (EUM) and more.
30
+
pip install -U instana
31
31
32
-
##OpenTracing
32
+
### Activating Without Code Changes
33
33
34
-
This Python package supports [OpenTracing](http://opentracing.io/). When using this package, the OpenTracing tracer (`opentracing.tracer`) is automatically set to the `InstanaTracer`.
34
+
The Instana package can then be activated _without any code changes required_ by setting the following environment variable for your Python application:
35
35
36
-
```Python
37
-
import opentracing
36
+
export AUTOWRAPT_BOOTSTRAP=instana
37
+
38
+
This will cause the Instana Python package to automatically instrument your Python application. Once it finds the Instana host agent, it will begin to report Python metrics and distributed traces.
38
39
39
-
with opentracing.tracer.start_active_span('asteroid 💫') as pscope:
40
-
pscope.span.set_tag(ext.COMPONENT, "Python simple example app")
Alternatively, if you prefer the really manual method, simply import the `instana` package inside of your Python application:
58
43
59
-
## Configuration
44
+
import instana
60
45
61
-
For details on how to configure the Instana Python package, see [Configuration.md](https://github.com/instana/python-sensor/blob/master/Configuration.md)
46
+
See also our detailed [Installation document](https://docs.instana.io/ecosystem/python/installation) for additional information covering Django, Flask, End-user Monitoring (EUM) and more.
0 commit comments