Skip to content
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: Robustness improvements to datadog_diagnostics plugin #723

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

timmc-edx
Copy link
Member

  • Add DATADOG_DIAGNOSTICS_ENABLE for quick disable if needed
  • Limit spans with DATADOG_DIAGNOSTICS_MAX_SPANS (default 100)
  • Fix scope of member variables
  • Add unit tests

Manual testing:

  • Modify common.djangoapps.student.views.dashboard.student_dashboard in edx-platform to call import time; time.sleep(10) at the start of the view.
  • Start server and log
  • Visit /dashboard
  • While the browser is waiting, quickly make a small edit to an edx-platform file, causing an autoreload.
  • Confirm that spans are logged.

Merge checklist:
Check off if complete or not applicable:

  • Version bumped
  • Changelog record added
  • Documentation updated (not only docstrings)
  • Fixup commits are squashed away
  • Unit tests added/updated
  • Manual testing instructions provided
  • Noted any: Concerns, dependencies, migration issues, deadlines, tickets

- Add `DATADOG_DIAGNOSTICS_ENABLE` for quick disable if needed
- Limit spans with `DATADOG_DIAGNOSTICS_MAX_SPANS` (default 100)
- Fix scope of member variables
- Add unit tests

Manual testing:

- Modify `common.djangoapps.student.views.dashboard.student_dashboard` in
  edx-platform to call `import time; time.sleep(10)` at the start of the
  view.
- Start server and log
- Visit /dashboard
- While the browser is waiting, quickly make a small edit to an
  edx-platform file, causing an autoreload.
- Confirm that spans are logged.
@timmc-edx timmc-edx merged commit 5877b40 into main Jul 11, 2024
7 checks passed
@timmc-edx timmc-edx deleted the timmc/dd-better branch July 11, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants