-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: refactor code_owner code from edx-dajango-utils #838
base: main
Are you sure you want to change the base?
Conversation
ce0a75e
to
1d3af1c
Compare
Note to Reviewer: I did initial local testing to POC the celery span resource name was available locally, but I did not do a final local test. I wasn't able to get to a real celery task locally. |
...experiments/datadog_monitoring/docs/how_tos/update_monitoring_for_squad_or_theme_changes.rst
Outdated
Show resolved
Hide resolved
...experiments/datadog_monitoring/docs/how_tos/update_monitoring_for_squad_or_theme_changes.rst
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@timmc-edx: Thanks. This is ready for re-review. It needs to be rebased, but that requires re-running make upgrade
, and I still don't know how to do that cleanly. It would be great to have a way to do so.
...experiments/datadog_monitoring/docs/how_tos/update_monitoring_for_squad_or_theme_changes.rst
Outdated
Show resolved
Hide resolved
...experiments/datadog_monitoring/docs/how_tos/update_monitoring_for_squad_or_theme_changes.rst
Outdated
Show resolved
Hide resolved
This is the code_owner code as found in edx-django-utils.
Initial rollout of moving code_owner monitoring code from edx-django-utils to this plugin. - Adds near duplicate of code owner middleware from edx-django-utils. - Adds code owner for celery using Datadog span processing of celery.run spans. - Uses temporary span tags names using `_2`, like `code_owner_2`, for rollout and comparison with the original span tags. See #784
1. switch get_code_owner_from_module => set_code_owner_attribute_from_module. 2. Update tests with deeper mock of set_custom_attribute. 3. Remove decorator set_code_owner_attribute and associated tests. 4. Fix minor rst issues.
8137b68
to
433efbf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Reminder to update date in changelog.
Note to Reviewer: The original edx-django-utils code was copied in as a separate commit to make it easier to see what was added and what was updated if you review commit by commit.
Initial rollout of moving code_owner monitoring code from edx-django-utils to this plugin.
_2
, likecode_owner_2
, for rollout and comparison with the original span tags.See #784
Merge checklist:
Check off if complete or not applicable: