Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Commit 629cc7d

Browse files
committed
wip
1 parent ccb9e80 commit 629cc7d

File tree

9 files changed

+11
-9
lines changed

9 files changed

+11
-9
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ In order to implement tracing in your system (for all the requests), add the fol
2525

2626
.. code-block:: python
2727
28-
from opentracing.scope_managers.tornado import TornadoScopeManager
28+
from opentracing_tornado.scope_managers import TornadoScopeManager
2929
import tornado_opentracing
3030
3131
# Create your opentracing tracer using TornadoScopeManager for active Span handling.

tests/helpers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import tornado_opentracing
44
from opentracing.mocktracer import MockTracer
5-
from tornado_opentracing.scope_manager import ScopeManager
5+
from tornado_opentracing.scope_managers import ScopeManager
66

77

88
if sys.version_info >= (3, 3):

tests/helpers/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def get(self):
99

1010

1111
if sys.version_info > (3, 5):
12-
from ._handlers_async import (
12+
from .handlers_async_await import (
1313
AsyncScopeHandler,
1414
DecoratedAsyncHandler,
1515
DecoratedAsyncScopeHandler,

tests/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
import tornado.web
2121
import tornado.testing
2222
import tornado_opentracing
23-
from tornado_opentracing.scope_manager import ScopeManager
24-
from tornado_opentracing.context_manager import tornado_context
23+
from tornado_opentracing.scope_managers import ScopeManager
24+
from tornado_opentracing.context_managers import tornado_context
2525

2626
from .helpers import AsyncHTTPTestCase
2727

tests/test_decorated.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import tornado.web
1717
import tornado.testing
1818
import tornado_opentracing
19-
from tornado_opentracing.context_manager import tornado_context
19+
from tornado_opentracing.context_managers import tornado_context
2020

2121
from .helpers import tracing
2222
from .helpers import AsyncHTTPTestCase

tests/test_tracing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
import tornado_opentracing
2525
from tornado import version_info as tornado_version
2626
from tornado_opentracing import TornadoTracing
27-
from tornado_opentracing.scope_manager import ScopeManager
28-
from tornado_opentracing.context_manager import tornado_context
27+
from tornado_opentracing.scope_managers import ScopeManager
28+
from tornado_opentracing.context_managers import tornado_context
2929

3030
from .helpers import AsyncHTTPTestCase
3131
from .helpers.handlers import AsyncScopeHandler
File renamed without changes.

tornado_opentracing/initialization.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ def _patch_handler_init(init, handler, args, kwargs):
4747
init(*args, **kwargs)
4848

4949
tracing = handler.settings.get('opentracing_tracing')
50-
if tracing and not tracing._trace_all:
50+
if not tracing:
51+
return
52+
if not tracing._trace_all:
5153
return
5254

5355
for method in handler.SUPPORTED_METHODS:
File renamed without changes.

0 commit comments

Comments
 (0)