mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
Log time spent in markdown to statsd
(imported from commit 736a4ddf0716cf365cfaafd8f22a88de00d126bd)
This commit is contained in:
@@ -100,6 +100,9 @@ class LogRequests(object):
|
|||||||
bugdown_output = " (md: %s/%s)" % (format_timedelta(bugdown_time_delta),
|
bugdown_output = " (md: %s/%s)" % (format_timedelta(bugdown_time_delta),
|
||||||
bugdown_count_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
|
# Get the amount of time spent doing database queries
|
||||||
db_time_output = ""
|
db_time_output = ""
|
||||||
if len(connection.queries) > 0:
|
if len(connection.queries) > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user