-
Committer:
Tarmac
-
Author(s):
James Westby
-
Date:
2013-08-28 17:48:25 UTC
-
mfrom:
(1035.1.3 statsd-for-api)
-
Revision ID:
tarmac-20130828174825-xuroisjf10uiwoso
[r=ricardokirkner] Report statsd metrics for piston handlers as separate keys.
The standard django_statsd middleware reports all piston handlers
to the same key, because they all use Resource as the view class.
This adds a subclass of that middleware that reports Resource.handler
for piston resources, which means that each API handler will be
reported to a separate key.