Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Celery duplicated instrumentation #2342

Merged
Prev Previous commit
Next Next commit
* black formatting
  • Loading branch information
reiktar committed Mar 11, 2024
commit 0a2eab14066341d687e0a8fb22f86ed24957dfd1
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

from opentelemetry.instrumentation.celery import CeleryInstrumentor

class TestUtils(unittest.TestCase):

class TestUtils(unittest.TestCase):
def test_duplicate_instrumentaion(self):
first = CeleryInstrumentor()
first.instrument()
Expand All @@ -26,5 +26,5 @@ def test_duplicate_instrumentaion(self):
CeleryInstrumentor().uninstrument()
self.assertIsNotNone(first.metrics)
self.assertIsNotNone(second.metrics)
self.assertEqual(first.task_id_to_start_time,{})
self.assertEqual(first.task_id_to_start_time, {})
self.assertEqual(second.task_id_to_start_time, {})