Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into majorgreys/instru…
Browse files Browse the repository at this point in the history
…mentor-celery
  • Loading branch information
majorgreys committed Jun 16, 2020
2 parents 440c66d + 521115f commit 3eae958
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions eachdist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ sortfirst=
tests/util
ext/opentelemetry-ext-wsgi
ext/opentelemetry-ext-dbapi
ext/opentelemetry-ext-asgi
ext/*

[lintroots]
Expand Down
1 change: 0 additions & 1 deletion ext/opentelemetry-ext-celery/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ Usage

.. code-block:: python
from opentelemetry import trace
from opentelemetry.ext.celery import CeleryInstrumentor
CeleryInstrumentor().instrument()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
.. code:: python
from opentelemetry import trace
from opentelemetry.ext.celery import CeleryInstrumentor
CeleryInstrumentor().instrument()
Expand Down Expand Up @@ -141,9 +140,6 @@ def _trace_postrun(*args, **kwargs):
utils.detach_span(task, task_id)

def _trace_before_publish(self, *args, **kwargs):
# The `Task` instance **does not** include any information about the current
# execution, so it **must not** be used to retrieve `request` data.
# pylint: disable=no-member
task = utils.retrieve_task_from_sender(kwargs)
task_id = utils.retrieve_task_id_from_message(kwargs)

Expand Down

0 comments on commit 3eae958

Please sign in to comment.