mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-25 06:48:01 -05:00
Don't report timing for bogus web requests to statsd.
This commit is contained in:
committed by
Neil Williams
parent
080d7bd895
commit
bbd27331ea
@@ -661,8 +661,10 @@ class MinimalController(BaseController):
|
||||
g.reset_caches()
|
||||
|
||||
# push data to statsd
|
||||
g.stats.transact('web.%s' % action,
|
||||
(end_time - c.start_time).total_seconds())
|
||||
if 'pylons.action_method' in request.environ:
|
||||
# only report web timing data if an action handler was called
|
||||
g.stats.transact('web.%s' % action,
|
||||
(end_time - c.start_time).total_seconds())
|
||||
g.stats.flush_timing_stats()
|
||||
|
||||
def abort404(self):
|
||||
|
||||
Reference in New Issue
Block a user