Skip to content

Commit

Permalink
feat!: remove temporary rollout span tag code_owner_plugin (#873)
Browse files Browse the repository at this point in the history
The span tag code_owner_plugin was used to rollout
code_owner switch from edx-django-utils to the
datadog_monitoring plugin in this repo. Now that
rollout is complete, this span tag can be removed.

Implements:
- #784
  • Loading branch information
robrap authored Dec 12, 2024
1 parent 138ed0e commit 3af9378
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Change Log
Unreleased
~~~~~~~~~~
Removed
-------
* Removed temporary rollout span tag ``code_owner_plugin`` used for the code owner monitoring move from edx-django-utils. Now that edx-django-utils monitoring has been disabled, this span tag serves no purpose.

[6.1.0] - 2024-12-10
~~~~~~~~~~~~~~~~~~~~
Expand Down
9 changes: 0 additions & 9 deletions edx_arch_experiments/datadog_monitoring/code_owner/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,6 @@ def set_code_owner_custom_span_tags(code_owner):
# to the code_owner span tag.
set_custom_attribute('code_owner_squad', code_owner)

# .. custom_attribute_name: code_owner_plugin
# .. custom_attribute_description: This is a temporary span tag to roll out the
# the switch from edx-django-utils to this plugin. If this span tag is True,
# the plugin has added the above custom span tags (possibly in addition to
# edx-django-utils). If the code_owner_theme span tag is also seen, then
# edx-django-utils is also adding these span tags. If not, only the plugin is
# creating these tags.
set_custom_attribute('code_owner_plugin', True)


def set_code_owner_span_tags_from_request(request):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ def _assert_set_custom_attribute(
if code_owner:
call_list.append(call('code_owner', code_owner))
call_list.append(call('code_owner_squad', code_owner))
call_list.append(call('code_owner_plugin', True))
if module:
call_list.append(call('code_owner_module', module))
if has_path_error:
Expand Down

0 comments on commit 3af9378

Please sign in to comment.