Remove dogstatsd-python in favor of dogapi - #905
Conversation
|
@cpennington datadog was not being initialized since our datado django app was not in INSTALLED_APPS. I also changed functions that where using statsd instead of dog_stats_api. The pearson app is still using DATADOG_API because it uses dog_http_api. Can we change it to use dog_stats_api? @brianhw what do you think? |
|
Just so I understand, the real fix here is adding datadog to INSTALLED_APPS, so that datadog works at all. (I thought the increment calls were working fine for bulk_email -- just that the timers weren't.) Switching away from dog_http_api is a nice-to-have. If we need to remove dogstats entirely from Pearson, I think that's fine. It could be commented out or replaced. But since you replaced dog_http_api calls elsewhere as part of this PR, is there a reason not to have done Pearson at the same time? |
|
@brianhw the only module that I found using |
|
I don't know too much about .event. Ashley put that in. I think the purpose was to be able to notice when problems occurred with the Pearson feed, as those commands were being called automatically on a schedule. |
|
Actually, One other question is whether we should actually switch more in favor of the |
|
This doesn't conflict with my branch but it's missing two things that my branch has:
|
|
@cpennington thanks for the clarification. As for the second part, both It seems to me that |
|
👍 by me |
There was a problem hiding this comment.
It would be nice if this didn't require a synchronous change on the configuration side in production. For instance, you could load in the DATADOG_API key from AUTH_TOKENS as a default value into the DATADOG dictionary (or if the DATADOG dictionary doesn't exist).
There was a problem hiding this comment.
Looks like there are still two Pearson commands that reference DATADOG_API. Should these just be changed to use DATADOG instead?
There was a problem hiding this comment.
@cpennington I had that at some point, but end up removing it thinking that it is better to request a change from devops than to provide support for both options. I'll make the change you mention first and request the change, that way we can remove DATADOG_API at some point.
@brianhw I haven't had time to go over the Pearson app yet. I'll ping you when I update it.
There was a problem hiding this comment.
Yes, that sounds good. We want to be able to remove the old settings, but not require that the settings be updated simultaneously as the code is deployed.
Also added datadog application to commom django apps and set it to use a local statsd server by default.
|
Looks good, as long as tests pass. 👍 |
Remove dogstatsd-python in favor of dogapi
…st-playback-status-feature Add unittest for playback status feature openedx#905 openedx#1039 (cherry picked from commit c6f68cb4df178e0e60133afbcb7f21d11badd720) Conflicts: biz/djangoapps/ga_achievement/management/commands/tests/test_update_biz_score_status.py biz/djangoapps/ga_achievement/tests/factories.py
Commits: Send SSO users with existing accounts to /login
Also added datadog application to commom django apps and set it to use
a local statsd server by default.