From 4c734e40834fb86ff92836deb01dfb6d2f1bb1ac Mon Sep 17 00:00:00 2001 From: Robert Raposa Date: Wed, 20 Nov 2024 16:57:42 -0500 Subject: [PATCH] fixup! minor doc updates --- .../how_tos/add_code_owner_custom_attribute_to_an_ida.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/edx_arch_experiments/datadog_monitoring/docs/how_tos/add_code_owner_custom_attribute_to_an_ida.rst b/edx_arch_experiments/datadog_monitoring/docs/how_tos/add_code_owner_custom_attribute_to_an_ida.rst index 7392e3c..a9872c2 100644 --- a/edx_arch_experiments/datadog_monitoring/docs/how_tos/add_code_owner_custom_attribute_to_an_ida.rst +++ b/edx_arch_experiments/datadog_monitoring/docs/how_tos/add_code_owner_custom_attribute_to_an_ida.rst @@ -26,13 +26,15 @@ If you want to learn more about custom span tags in general, see `Enhanced Monit Setting up the Middleware ------------------------- -You simply need to add ``edx_arch_experiments/datadog_monitoring/code_owner/middleware.CodeOwnerMonitoringMiddleware`` to get code owner span tags on Django requests. +You simply need to add ``edx_arch_experiments.datadog_monitoring.code_owner.middleware.CodeOwnerMonitoringMiddleware`` to get code owner span tags on Django requests. Handling celery tasks --------------------- For celery tasks, this plugin will automatically detect and add code owner span tags to any span with ``operation_name:celery.run``. +This is accomplished by receiving signals from celery's worker_process_init for each process, and then adding a custom Datadog span processor to add the span tags as appropriate. + Configuring your app settings -----------------------------