Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Update decorator names in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
JorikSchellekens committed Jul 19, 2019
1 parent 8487442 commit 1345ac8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/opentracing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ function becomes the operation name for the span.
.. code-block:: python
# Start a span using 'normal_function' as the operation name
@trace_function
@trace
def normal_function(*args, **kwargs):
# Does all kinds of cool and expected things
return something_usual_and_useful
# Start a span using 'deferred_function' as the operation name
@trace_defered_function
@trace_deferred
# Yes, there is a typo in the lib. I will fix this
def deferred_function(*args, **kwargs):
# We start
Expand All @@ -131,17 +131,17 @@ function becomes the operation name for the span.
defer.returnValue(something_usual_and_useful)
Operation names can be explicitely set for functions by using
``trace_function_using_operation_name`` and
``trace_defered_function_using_operation_name``
``trace_using_operation_name`` and
``trace_deferred_using_operation_name``

.. code-block:: python
@trace_function_using_operation_name("A *much* better operation name")
@trace_using_operation_name("A *much* better operation name")
def normal_function(*args, **kwargs):
# Does all kinds of cool and expected things
return something_usual_and_useful
@trace_defered_function_using_operation_name("An operation name that fixes the typo!")
@trace_deferred_using_operation_name("An operation name that fixes the typo!")
# Yes, there is a typo in the lib. I will fix this
def deferred_function(*args, **kwargs):
# We start
Expand Down

0 comments on commit 1345ac8

Please sign in to comment.