diff --git a/edx_arch_experiments/datadog_monitoring/signals/handlers.py b/edx_arch_experiments/datadog_monitoring/signals/handlers.py index b6430bf..04b5ab3 100644 --- a/edx_arch_experiments/datadog_monitoring/signals/handlers.py +++ b/edx_arch_experiments/datadog_monitoring/signals/handlers.py @@ -15,7 +15,7 @@ def init_worker_process(sender, **kwargs): """ Adds a Datadog span processor to each worker process. - + We have to do this from inside the worker processes because they fork from the parent process before the plugin app is initialized. """ diff --git a/edx_arch_experiments/datadog_monitoring/tests/test_apps.py b/edx_arch_experiments/datadog_monitoring/tests/test_apps.py index cf03b4d..bdea120 100644 --- a/edx_arch_experiments/datadog_monitoring/tests/test_apps.py +++ b/edx_arch_experiments/datadog_monitoring/tests/test_apps.py @@ -20,4 +20,4 @@ def test_signal_has_receiver(self): was already imported. """ # the name of the function is in the weakref __repr__ - assert 'init_worker_process' in worker_process_init.receivers[0][1].__repr__() + assert 'init_worker_process' in repr(worker_process_init.receivers[0][1])