We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 43ad608 + e5c50bb commit 89942d4Copy full SHA for 89942d4
docs/basic_usage.rst
@@ -75,8 +75,8 @@ API details of the decorator can be found here :py:meth:`ddtrace.Tracer.wrap`.
75
Context Manager
76
^^^^^^^^^^^^^^^
77
78
-To trace an arbitrary block of code, you can use the :py:mod:`ddtrace.Span`
79
-context manager::
+To trace an arbitrary block of code, you can use :py:meth:`ddtrace.Tracer.trace`
+that returns a :py:mod:`ddtrace.Span` which can be used as a context manager::
80
81
# trace some interesting operation
82
with tracer.trace('interesting.operations'):
0 commit comments