Log time spent in markdown to statsd

(imported from commit 736a4ddf0716cf365cfaafd8f22a88de00d126bd)
This commit is contained in:
Leo Franchi 2013-05-31 14:09:51 -04:00
parent a906e1609d
commit df6a93ddb6
1 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,9 @@ class LogRequests(object):
bugdown_output = " (md: %s/%s)" % (format_timedelta(bugdown_time_delta),
bugdown_count_delta)
statsd.timing("%s.markdown.time" % (statsd_path,), timedelta_ms(bugdown_time_delta))
statsd.incr("%s.markdown.count" % (statsd_path,), bugdown_count_delta)
# Get the amount of time spent doing database queries
db_time_output = ""
if len(connection.queries) > 0: