Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
Fix ResponseTimeMiddle to use the new one oneshot_with_value() for pu…
Browse files Browse the repository at this point in the history
…blishing metrics
  • Loading branch information
justinvdm committed Nov 11, 2013
1 parent 653af5f commit aa6ae30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/base/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def process_response(self, request, response):
response['X-Response-Time'] = response_time

metric = self.metric_from_request(request)
metric.oneshot(response_time)
metric.oneshot_with_value(response_time)
except AttributeError, e:
# For cases where our request object was not processed and given a
# `start_time` attribute
Expand Down

0 comments on commit aa6ae30

Please sign in to comment.