Merge pull request #3061 from cpennington/model-metrics
Add datadog metrics logging for django model creates, updates, and deletes
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -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 ###############################
|
||||
|
||||
Reference in New Issue
Block a user