From 69014901c847f266cb71cd823cd0d6112825a028 Mon Sep 17 00:00:00 2001 From: Robert Raposa Date: Thu, 21 Nov 2024 12:55:10 -0500 Subject: [PATCH] fixup! minor update Co-authored-by: Tim McCormack --- edx_arch_experiments/datadog_monitoring/code_owner/datadog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edx_arch_experiments/datadog_monitoring/code_owner/datadog.py b/edx_arch_experiments/datadog_monitoring/code_owner/datadog.py index 9802010..3b38fcb 100644 --- a/edx_arch_experiments/datadog_monitoring/code_owner/datadog.py +++ b/edx_arch_experiments/datadog_monitoring/code_owner/datadog.py @@ -13,7 +13,7 @@ def on_span_start(self, span): """ Adds code owner span tag for celery run spans at span creation. """ - if hasattr(span, 'name') and span.name == 'celery.run': + if getattr(span, 'name') == 'celery.run': # We can use this for celery spans, because the resource name is more predictable # and available from the start. For django requests, we'll instead continue to use # django middleware for setting code owner.