Merge pull request #3061 from cpennington/model-metrics

Add datadog metrics logging for django model creates, updates, and deletes
This commit is contained in:
Calen Pennington
2014-03-28 16:33:53 -04:00
6 changed files with 145 additions and 8 deletions

View File

@@ -23,6 +23,8 @@ class StudentModule(models.Model):
"""
Keeps student state for a particular module in a particular course.
"""
MODEL_TAGS = ['course_id', 'module_type']
# For a homework problem, contains a JSON
# object consisting of state
MODULE_TYPES = (('problem', 'problem'),

View File

@@ -476,10 +476,6 @@ CODE_JAIL = {
# ]
COURSES_WITH_UNSAFE_CODE = []
############################ SIGNAL HANDLERS ################################
# This is imported to register the exception signal handling that logs exceptions
import monitoring.exceptions # noqa
############################### DJANGO BUILT-INS ###############################
# Change DEBUG/TEMPLATE_DEBUG in your environment settings files, not here
DEBUG = False
@@ -1196,6 +1192,9 @@ INSTALLED_APPS = (
'reverification',
'embargo',
# Monitoring functionality
'monitoring',
)
######################### MARKETING SITE ###############################