Skip to content

Commit 89942d4

Browse files
authored
Merge pull request #1180 from adamchainz/patch-2
Improve tracer.trace docs
2 parents 43ad608 + e5c50bb commit 89942d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/basic_usage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ API details of the decorator can be found here :py:meth:`ddtrace.Tracer.wrap`.
7575
Context Manager
7676
^^^^^^^^^^^^^^^
7777

78-
To trace an arbitrary block of code, you can use the :py:mod:`ddtrace.Span`
79-
context manager::
78+
To trace an arbitrary block of code, you can use :py:meth:`ddtrace.Tracer.trace`
79+
that returns a :py:mod:`ddtrace.Span` which can be used as a context manager::
8080

8181
# trace some interesting operation
8282
with tracer.trace('interesting.operations'):

0 commit comments

Comments
 (0)