Skip to content

Commit 0b694b1

Browse files
authored
Merge pull request #51 from instana/better_runtime
Cleanup runtime initialization
2 parents e9c3eff + 3c43792 commit 0b694b1

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ To enable the Flask instrumentation, set the following environment variable in y
3535

3636
`export AUTOWRAPT_BOOTSTRAP=flask`
3737

38+
## Runtime Monitoring Only
39+
40+
_Note: When the Django or Flask instrumentation is used, runtime monitoring is automatically included. Use this section if you only want to see runtime metrics._
41+
42+
To enable runtime monitoring (without request tracing), set the following environment variable in your _application boot environment_ and then restart your application:
43+
44+
`export AUTOWRAPT_BOOTSTRAP=runtime`
45+
3846
## uWSGI
3947

4048
### Threads

instana/runtime.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import opentracing as ot
2-
from instana import tracer, options
31
import os
42

53

@@ -10,6 +8,3 @@ def hook(module):
108
print("==========================================================")
119
print("Instana: Running runtime hook")
1210
print("==========================================================")
13-
14-
opts = options.Options()
15-
ot.tracer = tracer.InstanaTracer(opts)

0 commit comments

Comments
 (0)