Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Issue 1239103003: Add "filters/count" filter. (Closed)

Created:
5 years, 5 months ago by iannucci
Modified:
5 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/infra/infra.git@add_filters
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

Add "filters/count" filter. This filter allows you to track the number of times a give API has been invoked, as well as the number of errors that the API has returned. Will mostly be used for testing. R=dnj@chromium.org, estaab@chromium.org, martiniss@chromium.org, vadimsh@chromium.org BUG= Committed: https://chromium.googlesource.com/infra/infra/+/d457a6aaf151534810385ddec52b97a15aa5ccb1

Patch Set 1 #

Total comments: 2

Patch Set 2 : more better now #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+600 lines, -0 lines) Patch
A go/src/infra/gae/libs/gae/filters/count/count.go View 1 1 chunk +37 lines, -0 lines 1 comment Download
A go/src/infra/gae/libs/gae/filters/count/count.infra_testing View 1 1 chunk +5 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/gae/filters/count/count_test.go View 1 1 chunk +144 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/gae/filters/count/gi.go View 1 1 chunk +136 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/gae/filters/count/mc.go View 1 1 chunk +93 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/gae/filters/count/rds.go View 1 1 chunk +104 lines, -0 lines 0 comments Download
A go/src/infra/gae/libs/gae/filters/count/tq.go View 1 1 chunk +81 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (2 generated)
iannucci
5 years, 5 months ago (2015-07-16 22:58:20 UTC) #1
iannucci
PTAL, this one is pretty boring too (mostly copy-pasta).
5 years, 5 months ago (2015-07-16 23:47:38 UTC) #2
Vadim Sh.
lgtm sans unsynchronized ++ https://codereview.chromium.org/1239103003/diff/1/go/src/infra/gae/libs/gae/filters/count/count.go File go/src/infra/gae/libs/gae/filters/count/count.go (right): https://codereview.chromium.org/1239103003/diff/1/go/src/infra/gae/libs/gae/filters/count/count.go#newcode51 go/src/infra/gae/libs/gae/filters/count/count.go:51: fullName := runtime.FuncForPC(pc).Name() I wonder ...
5 years, 5 months ago (2015-07-16 23:56:12 UTC) #3
iannucci
I think the stack inspection is OK (it's just for testing after all), but I ...
5 years, 5 months ago (2015-07-16 23:58:18 UTC) #4
iannucci
PTAnL, it's more differenter now. No stack walking, no maps, no mutex.
5 years, 5 months ago (2015-07-17 00:22:52 UTC) #5
iannucci
On 2015/07/17 00:22:52, iannucci wrote: > PTAnL, it's more differenter now. No stack walking, no ...
5 years, 5 months ago (2015-07-17 00:23:10 UTC) #6
Vadim Sh.
lgtm imho it's much cleaner
5 years, 5 months ago (2015-07-17 00:41:27 UTC) #7
iannucci
On 2015/07/17 00:41:27, Vadim Sh. wrote: > lgtm > > imho it's much cleaner Agreed... ...
5 years, 5 months ago (2015-07-17 00:44:39 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1239103003/20001
5 years, 5 months ago (2015-07-17 00:44:55 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/infra/infra/+/d457a6aaf151534810385ddec52b97a15aa5ccb1
5 years, 5 months ago (2015-07-17 00:48:11 UTC) #11
nodir
5 years, 3 months ago (2015-09-19 05:45:50 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/1239103003/diff/20001/go/src/infra/gae/libs/g...
File go/src/infra/gae/libs/gae/filters/count/count.go (right):

https://codereview.chromium.org/1239103003/diff/20001/go/src/infra/gae/libs/g...
go/src/infra/gae/libs/gae/filters/count/count.go:26: func (e *Entry) up(errs
...error) error {
why do you accept a slice but you use only first element if present?

Powered by Google App Engine
This is Rietveld 408576698