Skip to content

Commit 1820acb

Browse files
committed
Load instrumentation directly
1 parent 581099d commit 1820acb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

instana/__init__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
from .tracer import InstanaTracer
55
from .options import Options
66

7+
# Import & initialize instrumentation
8+
from .instrumentation import urllib3
9+
710
"""
811
The Instana package has two core components: the sensor and the tracer.
912
@@ -44,8 +47,3 @@
4447

4548
# Set ourselves as the tracer.
4649
opentracing.tracer = internal_tracer
47-
48-
49-
def load_instrumentation():
50-
# Import & initialize instrumentation
51-
from .instrumentation import urllib3

0 commit comments

Comments
 (0)