Skip to content

v3.5.0: feat: Robustness improvements to datadog_diagnostics plugin (#723)

Latest
Compare
Choose a tag to compare
@timmc-edx timmc-edx released this 11 Jul 18:05
· 20 commits to main since this release
5877b40
- 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.